Show specific labels in Loki

I’m just getting started with Loki, trying to build some dashboards. I’m tagging each log message with several labels, and I’d like to display just the component label for each line to make it easier to read. Is there a way to specify certain labels to display? I don’t want to enable all unique labels as that’s too much clutter:

This is what it looks like with no labels:

I figured it out, using this query:

{host="10.93.194.229"} | pattern `<message>` | line_format `[{{.component}}] {{.message}}`

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.