Skip to content

Logs Gateway corrupts query #406

Description

@theSuess

I found this issue in the openshift-logging platform and traced it back to this component.

My example query of { kubernetes_namespace_name="some-namespace" } | json | level = "error" fails with the error

parse error at line 1, col 2002: syntax error: unexpected STRING

Tracing back lead me to the label enforcer, which somehow corrupts this query. In the debug logs i found that the query:

{log_type=~".+", kubernetes_namespace_name=~"<injected namespaces>"} | json | "error|err|eror"

is being sent upstream, meaning that we're losing the level field selector somewhere.

Hope I'm in the right place, but I'm not sure how to debug this further.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions