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
3
votes
3 answers

table manager does not purge chunk in loki 2.4

I wanted to have a deletion of chunk data older than 31 days so I made such config schema_config: configs: - from: 2020-10-24 store: boltdb-shipper object_store: filesystem schema: v11 index: prefix: index_ …
Baptiste Mille-Mathias
  • 2,144
  • 4
  • 31
  • 37
3
votes
1 answer

Promtail multiline does not merge stacktrace

Promtail, Grafana, Loki version is 2.4.1. running is Kubernetes. I was following the documentation. The exception in the log matches the regular expression. (ZeroWidthSpace is at the beginning of a log line) multiline stage is set see the attached…
balint.steinbach
  • 278
  • 3
  • 16
3
votes
2 answers

configure loki as prometheus data source not working

I wanted to create an alert if there is an error in the logs. I have added Loki as a Prometheus data source in Grafana. Appended Loki to the end of your URL, like this: http://ipaddress:3100/loki with basic auth and selected the Prometheus data…
3
votes
1 answer

Loki Distributed with S3 backend - Timestamp and Grafana connection issues

I have set up Loki Distributed using the official helm charts. nameOverride: null # -- Overrides the chart's computed full name fullnameOverride: null # -- Image pull secrets for Docker images imagePullSecrets: [] loki: # Configures the…
Vaibhav Jain
  • 2,155
  • 5
  • 27
  • 41
3
votes
1 answer

configure Promtail/loki to collect other logs files from the container running in a kubernetes pod using helm chart

I have installed the promtail/loki using the helm chart in my Kubernetes cluster by following the below link https://grafana.com/docs/loki/latest/installation/helm/ But By default, it collects only container logs. I want to configure my promtail in…
3
votes
1 answer

Delete logs in loki

is there any way to delete logs from Loki without table manager config like this: table_manager: retention_deletes_enabled: true retention_period: 336h This way is too destructive and not very useful, so I was wondering is there any better way…
OmarLittle
  • 423
  • 1
  • 9
  • 18
3
votes
0 answers

Grafana loki plot parsed numeric values

I am trying to perform a simple task in Grafana Loki. Fluentd has already parsed a csv log and put it in Loki. There are four fields in this csv, one of which is duration. Duration is a number in nanoseconds. I want to plot a time series of this…
Vadim
  • 576
  • 1
  • 4
  • 13
2
votes
0 answers

Promtail : context deadline exceeded

I have deployed loki in a kubernetes cluster "A" and trying to push the logs via promtail from another kubernetes cluster "B" to the loki endpoint (A). Below is the client URL set in promtail…
Kulandesu
  • 53
  • 1
  • 7
2
votes
1 answer

Configuring Loki Datasource for Grafana - Error no Org id found

While configuring Loki data source for Grafana you might get the error "no org id found"
Alex Punnen
  • 5,287
  • 3
  • 59
  • 71
2
votes
0 answers

How can I write logs to a file mounted by Docker?

I'm trying to get logs into Grafana Loki via Promtail. Both services are running in their own Docker container. Because Promtail collects logs from a filepath, my actual application is writing logs to a file on the host. This file gets mounted into…
ryan s
  • 31
  • 2
2
votes
1 answer

Grafana error - parse error : input size too long (5491 > 5120)

I see the following error in our Grafana dashboard, which uses LOKI as a data source. Sometimes it shows the data, but other times it throws this error. parse error : input size too long (XXX > 5120) When I run the same query in Explorer, it works.…
2
votes
0 answers

What is the behavior of Promtail when it encounters a compressed folder like .tar.gz or .zip

How does promtail read the files inside a compressed (.zip or .tar or .tar.gz) folder? Does it at all monitor the compressed files or not? I have made an environment for promtail to monitor a folder that has three types of folders inside it - .zip…
2
votes
0 answers

Failed to enable query frontend using Loki simple scalable deployment mode

I am currently using simple scalable deployment mode ( 3 reads, 6 writes, Helm Chart version: 3.7.0 ) for my logging system. As I have to ingest around 2TB data per day in Loki, the search performance is not sufficient…
Andrew
  • 129
  • 2
  • 8
2
votes
1 answer

Promtail: "error sending batch, will retry" status=500

when starting the promtail client, it gives an error: component=client host=loki:3100 msg="error sending batch, will retry" status=500 error="server returned HTTP status 500 Internal Server Error (500): rpc error: code = ResourceExhausted desc =…
Paul Mayer
  • 51
  • 6
2
votes
0 answers

How should we resolve SampleExtraction Error in LogQL? We want to find maximum value of field after grouping the data in LogQL

We already have info on the count of requests which has response time greater than 3000ms. Now we have to find out the max response time from those requests. Example: |**Request**| **Count**| |Req1 | 5 | |Req2 | 3 | So we…
ShraddhaJ
  • 201
  • 1
  • 14