I have a custom template variable that displays the following comma seperated values: info, error, warning, debug. The name of the variable is $Level with multi-select enabled. I need it to have so when you select more than 1 value the line filter expressions will stack on each other like the following:
ex. Info + error are selected:
{job="mylogs"} |="info" |="error"
Currently, I have my query setup like this:
{job="mylogs"} |="$Level"
However, with the current way, it doesn't produce any logs back when I select more than 1 option. Is there way to achieve this with Grafana/Loki?
TL;DR Is there a way to format Grafana template variables in LogQL line filter expressions?