제어 흐름 함수

PantherFlow 제어 흐름 함수

circle-info

PantherFlow는 Panther 버전 1.110부터 오픈 베타 상태이며 모든 고객이 사용할 수 있습니다. 버그 리포트와 기능 요청은 Panther 지원팀에 공유해 주세요.

case()

case(condition1: bool, value1: any [, condition2: bool, value2: any, ... ] [, else: any]) -> any

해당 조건이 true인 첫 번째 값을 반환합니다. 어떤 조건도 true가 아니면 null을 반환합니다.

예:

panther_logs.public.aws_alb
| extend avg=toscalar(panther_logs.public.aws_alb | summarize agg.avg(receivedBytes) by clientIp)
| project bytesSize=case(receivedBytes > avg, "larger", receivedBytes < avg, "smaller", "same")

마지막 업데이트

도움이 되었나요?