How can I extract a number that contains a comma in LogQL?
In Loki, I have logs output by the .NET Entity Framework that include duration as a number of milliseconds. If the number is 1000 or greater, the output includes a comma, like in the example below:
How can I extract a number that contains a comma in LogQL?
In Loki, I have logs output by the .NET Entity Framework that include duration as a number of milliseconds. If the number is 1000 or greater, the output includes a comma, like in the example below:
How to get the log line associated with the max value?
I am executing the following query:
logql: how to get the log line associated with the max value?
I am executing the following query: