count()

count() counts the total number of rows in the input stream.

Returns

A table with one row and one column, called @q.count.

Example

Get the number of S3 API calls recorded in AWS CloudTrail logs.

%ingest.source_type: "aws:cloudtrail"
and eventSource: "s3.amazonaws.com"
| count

Last updated