grafana/loki

Documentation feedback: /docs/sources/query/log_queries/_index.md

Opened this issue · 2 comments

RoSk0 commented

Introductory section mentions backticks as a preferred way of quoting strings to avoid escaping, but when I try to search for /api/results?sort_order=desc&page=1 , like this:

{namespace="mrp-prod", container="php-app-php-fpm"}
|= `/api/results?sort_order=desc&page=1`

I'm getting parse error at line 2, col 4: literal not terminated error back.

I'm using Grafana v9.3.13 ( f9f6d58de3 ).

Am I doing something wrong or this a bug?

I'm not sure what the problem is here, but I ran your query (with different values for namespace and container) and it returned log lines with the string, as expected. What Loki version are you running?

RoSk0 commented

We are running Loki 3.1.0 .