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

ad-hoc filtering is applied incorrectly #135

Closed
hagen1778 opened this issue Dec 5, 2024 · 1 comment
Closed

ad-hoc filtering is applied incorrectly #135

hagen1778 opened this issue Dec 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hagen1778
Copy link
Contributor

Use TimeSeries and Logs panels together on the same dashboard. Display some logs in Logs panel and try filtering by one of the fields:
image

Filter is applied incorrectly and breaks all other panels on the dashboard:
image

The original query used for one of the panels:

kubernetes.pod_namespace:~"$namespace" kubernetes.pod_name:~"$pod" kubernetes.container_name:~"$container" 
| stats by (kubernetes.pod_name,kubernetes.container_name) count() logs_total 
| filter logs_total: > 10 
| math(logs_total/$_interval)

The resulting query sent by Grafana after filtering by field value in the table:

kubernetes.pod_namespace:~"argocd" kubernetes.pod_name:~".*" kubernetes.container_name:~".*" 000000000000000006fe3869127251e6c8c8bbee1a18bfbc _stream_id:"=" | stats by (kubernetes.pod_name,kubernetes.container_name) count() logs_total | filter logs_total: > 10 | math(logs_total/$_interval)

The part 000000000000000006fe3869127251e6c8c8bbee1a18bfbc _stream_id:"=" is syntaxtically incorrect for LogsQL.

@hagen1778 hagen1778 added the bug Something isn't working label Dec 5, 2024
@Loori-R Loori-R self-assigned this Dec 6, 2024
@dmitryk-dk
Copy link
Contributor

Hi! The issue was fixed in the new release. Please check it. If you find any problems feel free to reopen the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants