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.
A regex in query in Grafana - Stack Overflow
stackoverflow.com › questions › 64892916But, you can use the regex field inside Grafana. This will work for any datasource. Here I'm using Prometheus, but again the actual query and datasource does not matter. So for example, say I have a query returning container IDs: And I only wanted the container IDs that ended with the letter "b". I could enter the /b$/ regex to match results ...
Filter variables with regex | Grafana Labs
grafana.com › filter-variables-with-regexFilter and modify using named text and value capture groups. Note: This feature is available in Grafana 7.4+. Using named capture groups, you can capture separate ‘text’ and ‘value’ parts from the options returned by the variable query. This allows the variable drop-down list to contain a friendly name for each value that can be selected.
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.