简体   繁体   中英

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

{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.

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM