Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-14902

Loki search does not allow special chars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • 4.15.0
    • 4.13.z
    • Observability UI
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When using the observability loki console, the search field does not accept special chars that should be escaped. For example, introduce the term "manager-role" (with quotes).

      Version-Release number of selected component (if applicable):

      4.13 with logging 5.7.1

      How reproducible:

      Alwasy

      Steps to Reproduce:

      1. Install the loki stack and configure the logging operator to use it
      2. Select the loki search
      3. In content, introduce some text between quotes, like "manager-role"
      

      Actual results:

      An exception in the search

      Expected results:

      Search using an escaped sequence

      Additional info:

      https://grafana.com/blog/2021/01/05/how-to-escape-special-characters-with-lokis-logql

            jezhu@redhat.com Jenny Zhu
            rgordill1@redhat.com Ramon Gordillo Gutierrez
            Anping Li Anping Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: