제한 연산자

개요

반환되는 결과 수를 다음으로 제한합니다 limit.

| limit <integer>

어떤 레코드가 반환되는지에 대한 보장은 없습니다, 다음이 없는 한 sort 이미 데이터에 대해 수행되었습니다.

예제

circle-info

이(가) 제공되지 않으면 PantherFlow는 어떤 필드를

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
EVENT

{ "p_event_time": "2023-09-16 05:59:04.058", "sentBytes": 167, "type": "https" }

Last updated

Was this helpful?