0

Loki 查询的二元运算符是否存在?是否有解决方法来实现这样的目标?

{job="myService"} 
  |~"AI Unable to update the session state in"
  OR 
  |~"Database Write Error"

4

1 回答 1

1

不,您不能这样做,但您可以执行以下操作:

{job="myService"} |~ "AI Unable to update the session state in|Database Write Error"

或以下内容:

count_over_time({job="myService"} |~ "AI Unable to update the session state in" [1h])
or
count_over_time({job="myService"} |~ "Database Write Error" [1h])
于 2022-01-20T13:44:46.330 回答