Unable to retrieve CloudWatch Logs Insights queries filtered by query language "CWLI" #9145
Labels
bug
This issue is a bug.
logs
p3
This is a minor priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
The
logs describe-queries
command supports a--query-language
option that should allow filtering at the API level for queries in a specific query language (CWLI, SQL or PPL). This appears to work for the "SQL" query language, but not for "CWLI".A client-side filter using
--query
shows that I have logs insights queries with both "CWLI" and "SQL" query languages:Performing the same filtering via the API filter using the
--query-language
option produces the same result for "SQL" query language, but no results for the "CWLI" query language:Am I doing something wrong, or is this a bug in the CLI and/or API?
Regression Issue
Expected Behavior
Using the
--query-language CWLI
option toaws logs describe-queries
should return the queries with query language "CWLI".Current Behavior
No results are returned.
Reproduction Steps
aws logs describe-queries
(without the--query-language
option) to confirm the query from step 1 is included in the results and that thequeryLanguage
isCWLI
.aws logs describe-queries --query-language CWLI
and check whether the query from step 1 is included in the results.Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.22.18
Environment details (OS name and version, etc.)
Windows 11
The text was updated successfully, but these errors were encountered: