Fix loki query in documentation
In !1198 (diffs, comment 45978) I added a change to fix a non-working loki query, see bbb0c157:
commit bbb0c1570e123d717cc35e3f3c74c02a4762027f
Author: Varac <varac@varac.net>
Date: Tue May 31 09:20:52 2022
Fix logcli regex example
diff --git a/docs/system_administration/logging.rst b/docs/system_administration/logging.rst
index d18f70fd..021056a4 100644
--- a/docs/system_administration/logging.rst
+++ b/docs/system_administration/logging.rst
@@ -71,15 +71,15 @@ doing this since LogQL always expects a stream label to get queried):
Query all logs for a keyword:
-.. code::
+.. code:: PromQL
{app=~".+"} |= "error"
-Query all k8s apps for errors using a regular expression:
+Query all k8s apps for errors using a regular expression, case-insensitive:
-.. code::
+.. code:: PromQL
- {app=~".+"} |~ `(error|fail|exception|fatal)`
+ {app=~".+"} |~ "(?i)error|fail|exception|fatal"`
@arie noticed the change is also missing a backtick, but since Loki is broken (#1340 (closed)) we don't have a way to test this. So we need to fix #1340 (closed) first.