'query by unique filename ordered by last modified time in Loki
My web application creates new log files per request. I would like to show a table of these files in Loki to be able to click on and see the log entries themselves.
I was able to use count_over_time to aggregate the logs into their unique filenames but this disregards the time the file was last touched, which would be the time of the last log entry with that filename.
So i've ended up with a table that looks good but the ordering is off. It seems there would be a much more intuitive way to do this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

