in Grafana how to pass a search query to search two strings with OR operator in logs?

1.7k views Asked by At
{app="overflow"}|="Checking error 1" OR |="Checking warning 1" OR |="Checking info 1"

I tried this one it was not working. Please let me know what can be tried to have two strings searched up in one query. Thanks.

1

There are 1 answers

2
Marcelo Ávila de Oliveira On

Use the following query:

{app="overflow"} |~ "(Checking error 1)|(Checking warning 1)|(Checking info 1)"

Obs: if you have problems, try one of the following options:

{app="overflow"} |~ `(Checking error 1)|(Checking warning 1)|(Checking info 1)`

or

{app="overflow"} |~ "Checking error 1|Checking warning 1|Checking info 1"