You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A clause like |~ "[0-9]*s\" orgID" works fine. note how I'm escaping like \" to match ". This is as expected
However when I update the clause to this:
|~ "\.[0-9]*s\" orgID"
E.g. I merely add \. to match a literal .
It no longer works. I get the error parse error at line 1, col 98: invalid char escape
this is in Grafana v7.1.0-b8976df5pre (55ac97dccc) Explore mode, querying Loki-ops
The text was updated successfully, but these errors were encountered:
A pattern like {container_name="app"} |~ "\s4[00-99]{2}\s" also results in the same error. In this case I want to match HTTP status code like 400 or 401 (its 3 digit with single space around it).
Describe the bug
A clause like
|~ "[0-9]*s\" orgID"
works fine. note how I'm escaping like\"
to match"
. This is as expectedHowever when I update the clause to this:
E.g. I merely add
\.
to match a literal.
It no longer works. I get the error
parse error at line 1, col 98: invalid char escape
this is in Grafana v7.1.0-b8976df5pre (55ac97dccc) Explore mode, querying Loki-ops
The text was updated successfully, but these errors were encountered: