Grafana Loki: Filter Logs Matching Multiple Strings (Regex Example)

Опубликовано: 16 Июнь 2026
на канале: Grafana Enjoyer
187
2

Are you trying to filter Grafana Loki logs that contain two strings at the same time? In this video, I’ll show you how to write LogQL queries with regex to match log entries containing multiple patterns.

```
{filename="/var/log/nginx/access.log"}

,# |=`/id/50`
,# |=`/id/11`

|~`/id/(50|11)`
```