Filter Loki logs in Grafana by logger prefix
In my Kubernetes cluster I ship logs via Alloy to Loki and access them through Grafana (version 10.x). The log lines are JSON formatted and contain a logger
field. The loggers build a hierarchy separated by dots like module.sub.subsub
. I thinks this is a very common setup and nothing fancy.