Filling a variable from pattern parser

Hello
Can I fill a variable with values identified in a pattern parser query?

My pattern is: <date_time> <srvr> <service> <msg>

I want to repeat a panel based on the values from < srvr > so I can display the data based on the server, instead of building and repeating one panel per server - this is specially useful for me because we constantly create and destroy servers.

Thanks!

If you mean dashboard variable in Grafana, I believe you can only use actual labels for variables, you cannot use parsed values, which means you’ll need to modify your log pipeline a bit and add a srvr label with some additional parsing.

1 Like