Last updated 8 days ago
Was this helpful?
Limit the number of returned results with limit.
limit
| limit <integer>
There is no guarantee as to which records are returned, unless a has already been performed on the data.
Example data
let aws_alb = datatable [ {"type": "https", "p_event_time": "2023-09-16 05:59:04.058", "sentBytes": 167}, {"type": "https", "p_event_time": "2023-09-16 05:45:34.863", "sentBytes": 329}, {"type": "https", "p_event_time": "2023-09-16 05:36:09.017", "sentBytes": 167}, {"type": "https", "p_event_time": "2023-09-16 05:27:39.177", "sentBytes": 468992} ];
aws_alb | limit 1
{ "p_event_time": "2023-09-16 05:59:04.058", "sentBytes": 167, "type": "https" }
sort