Questions tagged [grafana-loki]

Like Prometheus, but for logs.

Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus

https://github.com/grafana/loki

521 questions
0
votes
0 answers

Loki/Promtail - how to setup own scrape_configs?

I just installed Loki/Promtail using helm like this: helm repo add grafana https://grafana.github.io/helm-charts helm repo update helm upgrade --install loki grafana/loki-stack --create-namespace --namespace loki-stack --set…
user14389292
0
votes
1 answer

Why Loki shows "timestamp too new" when i try to parse logs?

I've tried to parse custom logs. Loki not accept parsed timestamps cause: level=error ts=2020-09-18T07:17:52.655628313Z msg="final error sending batch" status=400 error="server returned HTTP status 400 Bad Request (400): entry for stream has…
Sunbro _
  • 1
  • 1
  • 2
0
votes
1 answer

Multi-line single log file processing with promtail

I have a single log file that is continuously being appended to with the following fields enclosed inside the brackets: I plan to use Promtail to parse this single file in real-time as new records are being appended to it. Is this possible with…
nate
  • 440
  • 2
  • 8
  • 18
0
votes
1 answer

Grafana Loki LogQL : filter legends value

I do not understand how to logql grouping legend under histogram explore, how to display log level using logql ?
-1
votes
1 answer

field not found in type cassandra.Config in loki yaml file

Below is the config i have in my config.yaml storageConfig: cassandra: endpoint: https://api-test/v1/apps/tables/blobTable/blobs/ client_cert: | client_key: | keyspace: loki table: logs batch_size: 1000 …
Sunilsai
  • 68
  • 6
-1
votes
2 answers

Cannot access loki API from the browser

I have grafana-loki running in a docker-compose set up. I am trying to push logs to loki calling its API, but the funny thing is that if I try to query loki from my browser (http://loki:3100/loki/) I get a "site non reachable" or 404 not found…
Art
  • 163
  • 1
  • 8
-1
votes
1 answer

How to do Grafana Loki HTTP API in Javascript

I need to do this kind of Grafana Loki HTTP API in javascript. Something like this: $ curl -G -s "http://whatever:3100/loki/api/v1/query_range" --data-urlencode 'query={job="bobjob", branch=~"master"} |= ` ` ' How do I do that in javascript? With…
-1
votes
1 answer

Is there a way to Relabel a detected field value contained that is part of JSON with Loki?

I haven't been able to find this in the Loki documentation. Currently, my logs contain a Label resource that has information about the running service. Ideally, I would like to extract some of these values to make the logs very easy to filter…
fuzzi
  • 1,967
  • 9
  • 46
  • 90
-1
votes
2 answers

Promtail EC2 permissions

What are the permissions to grant, for the ACCESS_KEY and SECRET_KEY when setting up Promtail on EC2 machine? Key / Role ARN will set on ec2_sd_config section of YML file
1 2 3
34
35