grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.78k stars 3.43k forks source link

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

Open RoSk0 opened 1 week ago

RoSk0 commented 1 week ago

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?

JStickler commented 19 hours ago

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?