Using query variable in query is causing syntax error due to \n in variable value

I have created a query variable with regex to ignore the \n. However when I use the variable in my query, I am getting syntax error because of the \n.
Uploaded below are the screenshots of variable and inspected query.

Error - Request failed status: 400 Bad Request: {“error”:{“message”:“The request had some invalid properties”,“code”:“BadArgumentError”,“correlationId”:“5c868bf3-f5dd-42a2-a1b5-cfb7671158ee”,“innererror”:{“code”:“SyntaxError”,“message”:"Request is invalid and cannot be processed: Syntax error: SYN0001: I could not parse that, sorry.

The data source is Azure Monitor with Azure log analytics service.
Grafana version 7.3.6


This topic was automatically closed after 365 days. New replies are no longer allowed.