loki 中的二元运算符

Binary operator in loki

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

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

不,你不能这样做,但你可以这样做,例如:

{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])