head()
Returns
Examples
# Get the 10 oldest error responses from the checkout_api service (default n)
%ingest.source_type: "kubernetes"
and kubernetes.container_name: "checkout_api"
and status_code >= 400
| head
# Count distinct source IPs across the first 1,000 S3 API calls
%ingest.source_type: "aws:cloudtrail"
and eventSource: "s3.amazonaws.com"
| head 1000
| countdistinct sourceIPAddress
# Get the top 3 users by login count
eventName: "ConsoleLogin"
| groupbycount userIdentity.arn
| head 3Last updated
Was this helpful?