Expand description
CloudWatch Logs Insights query language parser and executor.
Supports the common subset of CWLI syntax as an ordered pipeline:
fields @timestamp, @message/display ...— select output fieldsfilter field = "value"/!=/like /pattern/— filter rowsparse @message "* [*] *" as a, b, c— extract fields via a globstats count(*) [as alias] by field, ...— aggregate (count/sum/avg/min/ max/count_distinct), optionally groupeddedup field, ...— drop duplicate rows by the given fieldssort @timestamp desc— order rowslimit N— cap row count
Structs§
- AggExpr
- Parse
Spec - A
parsedirective: globpatternapplied tosource, binding each*wildcard (in order) to the corresponding name innames. - Parsed
Query - A parsed CWLI query: an ordered pipeline of commands.
- Query
Stream - One stream’s events for query execution.
Enums§
Functions§
- execute_
query - Execute a parsed query against a set of streams, returning results in the
CloudWatch Logs Insights format: an array of rows, each an array of
{field, value}objects. - parse_
query - Parse a CWLI query string into a structured pipeline.