Invalid regex when querying, but not with live logs

I’m using Loki, and running into an issue when I’m trying to query. Live logs works fine, but when I stop the live logs and just run the query without changing anything, I get this error: Invalid regular expression: /(?:level=|lvl=|severity=)(?P<level>\w+)/: Invalid group

These screenshots show what I’m getting.


Neither of your screenshot actually shows the regex, do you know where that’s coming from?

If you switch to code view on the top right, what query does it actually show you?

As far as I’m aware, I’m not using any regex, so no idea where it would be coming from.

{compose_service="dev-app"} |= `broadcast`