News for hackers. Stuff that matters.
Re:New Grafana Loki UI: No LogQL Required by remram on Tuesday April 09, 2024 @01:21PM (#39981713)
That's definitely false
Re:New Grafana Loki UI: No LogQL Required by liampulles on Tuesday April 09, 2024 @03:22PM (#39983157)
Its certainly true in my environment, maybe not others though? Apologies!
Re:New Grafana Loki UI: No LogQL Required by Matthias247 on Tuesday April 09, 2024 @02:03PM (#39982239)
Why? If the pod is defined to spawn multiple containers, and each container runs the same application, then this seems true to me? Unless you would add an additional filter on the container name.
Re:New Grafana Loki UI: No LogQL Required by remram on Tuesday April 09, 2024 @04:39PM (#39983998)
Well yes obviously you have to filter on container if you want a single container (just like kubectl logs -l <...>). The parent comment was phrased as a limitation of Loki, of course if you request all logs for an application you'll get all containers, or if you request all logs for an applications or a namespace you will get that.

Not being able to filter between multiple processes or multiple restart of a container was a genuine issue, not being able to filter between pods of a deployment is not.

Re:New Grafana Loki UI: No LogQL Required by Matthias247 on Tuesday April 09, 2024 @05:40PM (#39984579)
I actually didn't understand it being phrased as a limitation. It could also be a feature - maybe one would prefer to look at logs for multiple services within a single query?

Anyhow, the nice thing about the system is that one can get anything that is preferable as long as the logs are annotated correctly (with pod and container id).

Re:New Grafana Loki UI: No LogQL Required by remram on Tuesday April 09, 2024 @06:31PM (#39985038)
No, once again, the trouble is that you can't get the logs for a specific execution. If a container in your pod restarts, that is invisible to Loki, you have to look for whatever the container writes on startup and cut there manually. If you want a specific process in your container, it's mixed with the rest.