Slide 36
Slide 36 text
クエリの基本構文 (例 3)
例:複数の検索を合成
利用時間が最も長いユーザーを上位 10 件表示する
SecurityEvent
| where EventID == 4624
| project Computer, Account, TargetLogonId,
logonTime=TimeGenerated
| join kind = inner (
SecurityEvent
| where EventID == 4634
| project TargetLogonId, LogoffTime=TimeGenerated
) on TargetLogonId
| extend Duration = LogoffTime - logonTime
| project-away TargetLogonId
| top 10 by Duration desc
36
Windows へのログオン
の記録 (EventID=4624)
と、
ログオフの記録
(EventID=4634)を join
ログオン時間とログオフ
時間の差=利用時間が
最も長い順に10件を表示