-
Bug
-
Resolution: Done-Errata
-
Normal
-
Logging 5.8.3
-
False
-
None
-
False
-
Product
-
NEW
-
NEW
-
Before this fix, a bug in the LogQL parsing caused some line filters to be excluded from the query. After this fix, the parsing includes all the line filters keeping the original query unchanged.
-
-
-
Important
Description of problem:
multi filter queries not returning correct results
Version-Release number of selected component (if applicable):
Loki 5.8.3
How reproducible:
always
Steps to Reproduce:
using the following query as an example: ~~~ {log_type =~ ".+" } | json != "tekton" |= "TLS handshake error from 10." != "10.128" ~~~ when comparing the same query ran against the API it returns different results ~~~ oc exec -n openshift-logging deployments/logging-loki-query-frontend -- curl -G -s -H 'X-Scope-OrgID:infrastructure' -k --cert /var/run/tls/http/server/tls.crt --key /var/run/tls/http/server/tls.key https://localhost:3100/loki/api/v1/query --data-urlencode 'query={log_type =~ ".+" } | json != "tekton" |= "TLS handshake error from 10." != "10.128"' | jq . ~~~ when inspecting the logs we can see that the query is being tranformed. ~~~ level=info ts=2024-02-23T10:04:13.336206173Z caller=metrics.go:159 component=frontend org_id=infrastructure latency=fast query="{ log_type=~\"infrastructure\" } | json != \"10.129\"" query_hash=2504732975 query_type=filter range_type=range length=1h0m0s start_delta=1h0m2.413192988s end_delta=2.413193188s step=14s duration=2.231157935s status=200 limit=100 returned_lines=0 throughput=3.0MB total_bytes=6.7MB total_bytes_structured_metadata=0B lines_per_second=1386 total_lines=3094 post_filter_lines=3042 total_entries=100 store_chunks_download_time=1.956537ms queue_time=0s splits=1 shards=16 cache_chunk_req=2 cache_chunk_hit=2 cache_chunk_bytes_stored=0 cache_chunk_bytes_fetched=3733264 cache_chunk_download_time=25.157µs cache_index_req=0 cache_index_hit=0 cache_index_download_time=0s cache_stats_results_req=0 cache_stats_results_hit=0 cache_stats_results_download_time=0s cache_result_req=1 cache_result_hit=0 cache_result_download_time=22.191µs ~~~
Actual results:
only the last filter seems to be applied
Expected results:
the console matches the API with all filters applied
Additional info:
- is cloned by
-
LOG-5270 [release-5.8] console logQL UI - multi filter queries not returning correct results
- Closed
- links to
-
RHSA-2024:130615 Logging for Red Hat OpenShift - 5.9.1