LogQL | Grafana Labs
grafana.com › docs › lokiLogQL is Grafana Loki’s PromQL-inspired query language. Queries act as if they are a distributed grep to aggregate log sources. LogQL uses labels and operators for filtering. There are two types of LogQL queries: Log queries return the contents of log lines. Metric queries extend log queries to calculate values based on query results.
regex | Grafana Labs
https://grafana.com/docs/loki/latest/clients/promtail/stages/regexregex stage. The regex stage is a parsing stage that parses a log line using a regular expression. Named capture groups in the regex support adding data into the extracted map. Schema regex: # The RE2 regular expression. Each capture group must be named. expression: <string> # Name from extracted data to parse. If empty, uses the log message.
Log queries | Grafana Labs
grafana.com › docs › lokiThe same rules that apply for Prometheus Label Selectors apply for Grafana Loki log stream selectors. The = operator after the label name is a label matching operator. The following label matching operators are supported: =: exactly equal!=: not equal =~: regex matches!~: regex does not match; Regex log stream examples: {name =~ "mysql.+"}
regex | Grafana Labs
grafana.com › latest › clientsregex stage. The regex stage is a parsing stage that parses a log line using a regular expression. Named capture groups in the regex support adding data into the extracted map. Schema regex: # The RE2 regular expression. Each capture group must be named. expression: <string> # Name from extracted data to parse. If empty, uses the log message.