I have a variable coming from a prometheus datasource.
I would like to use that to filter logs coming from a loki query like this:
{job="containerlogs"} |= $ip_address
When I try that, I receive this error:
syntax error: unexpected NUMBER, expecting STRING or ip
Is there a way to accomplish this?
I figured out the way around this.
After reading this issue, I tried without the All
option on the variable.
Then I was able to use this syntax:
{job="containerlogs"} |= ip(`$ip_address`)
system
Closed
3
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.