Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs Gateway corrupts query #406

Open
theSuess opened this issue Nov 18, 2022 · 2 comments
Open

Logs Gateway corrupts query #406

theSuess opened this issue Nov 18, 2022 · 2 comments

Comments

@theSuess
Copy link

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.

@philipgough
Copy link
Contributor

cc @periklis

@periklis
Copy link
Contributor

You are looking probably at this fix: #422 422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants