Range 연산자
개요
range <dest> from <start> to <end> step <size>예제
시퀀스 생성
range N from 0 to 5 step 1N
더 큰 스텝으로 시퀀스 생성
data
타임스탬프 시퀀스 생성
t
시계열 분석을 위한 시간 버킷 생성

마지막 업데이트
도움이 되었나요?
range <dest> from <start> to <end> step <size>range N from 0 to 5 step 1
마지막 업데이트
도움이 되었나요?
도움이 되었나요?
보다 작거나 같은 마지막 숫자에서 멈춥니다range data from 0 to 2 step 1
| project t = time.add(time.now(), data, 'h')let all_times = range N from 0 to 23 step 1
| project bucket=time.add(time.now(), -1*N, "h")
| project bucket=time.trunc('hour', bucket);
let all_actors = panther_logs.public.panther_audit
| where p_event_time > time.ago(1d)
| summarize by actor=actor.name;
let zeroes = all_times
| join kind=cross actors=(all_actors)
| project bucket, actor=actors.actor, eventcount=0;
panther_logs.public.panther_audit
| where p_event_time > time.ago(1d)
| extend bucket=time.trunc('hour', p_event_time)
| summarize eventcount=agg.count() by bucket, actor=actor.name
| union zeroes
| summarize eventcount=agg.sum(eventcount) by bucket, actor
| sort bucket asc, actor asc
| visualize line xcolumn=bucket, ycolumn=eventcount, series=actor, legend=bottom, title="Count of Panther Audit Actions Per User Over Last 24 Hours"