python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Grafana Loki LogQL: How to parse log lines with different log formats?
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 lo...
Spenhouet
Votes: 0
Answers: 0
sort nginx logs with loki logql against request_time field
this is my logql query
{namespace="ingress-nginx"}
| json | http_host="admin.site.com" and request_time > 20 and status!="499"
| line_format "status={{.st...
DmitrySemenov
Votes: 0
Answers: 0
How to sort 500-511 HTTP errors in a file produced daily on Grafana using Loki as Datasource
How to grep for only 500 errors (500-511) in a file that is created daily with date stamp in file name. These files are configured to be pushed by promtail agent to Loki server so I can visualize them...
Benze Lawerence
Votes: 0
Answers: 1
How to slice the string using logql?
I have values in my logs in grafana loki something like this
data 1234-02-01,12:30,1
data 1234-03-02,11:30,12
I am able to slice these values and separate date and time from this using trunc but I d...
user12252991
Votes: 0
Answers: 1