logql Questions

3

Solved

I am sending json logs to loki and visualizing in grafana. Initially, my logs looked like as following. { "log": "{\"additionalDetails\":{\"body\":{},\"ip...
Herrenvolk asked 5/2, 2022 at 22:1

1

Solved

We have different type of logs for one and the same application. Some are coming from our application which logs in a JSON format and others are different types of log messages. For example these 3...
Hercules asked 30/3, 2022 at 10:1

3

I am using Grafana and Loki to analyze logs from my application, and have used the Bar Gauge in a few places already. This is my query: sum(count_over_time({namespace=~"$namespace", job=~...
Lamothe asked 8/11, 2021 at 16:52

1

Solved

I have a log stream that has a UserID= label. I'm trying to count the number of unique users within an hour. Here's an example of my log stream: ts=2022-09-16T10:52:54.21344541Z level=INFO UserID=6...
Least asked 17/9, 2022 at 10:46

1

Solved

I am using Grafana Loki and I need to calculate the total number of a certain log message for a specific time interval. For example, I need the total number of log message "some-text" in ...
Cletus asked 13/6, 2022 at 18:25

1

Solved

I am working on a Loki-based Dashboard on Grafana. I have one panel for searching text in the Loki trace logs, the current query is like: {job="abc-service"} |~ "searchTrace" |j...
Semifluid asked 7/1, 2022 at 4:6

2

Solved

I'd like to translate Kibana query like to following to LogQL: host:("test1-myservice-*") AND level:ERROR AND NOT logger_name:"com.example.ExampleClass" AND _exists_:stack_tra...
Mccowan asked 10/12, 2021 at 15:9
1

© 2022 - 2024 — McMap. All rights reserved.