728x90

[Windows] Event Log를 필터링하기(XML을 통한 Custom View생성)

 

1. 보안 이벤트에서 이벤트 ID 5061과 로그인 사용자가 gmkim 혹은 mani4u 값으로 조회, 24시간 이내 값만

<QueryList>
  <Query Id="0" Path="Security">
    <Select Path="Security">
*[System[(EventID=5061) and TimeCreated[timediff(@SystemTime) &lt;= 86400000]]]
and
*[EventData[Data[@Name='SubjectUserName'] and (Data='gmkim'  or Data='test9')]] 
</Select>
  </Query>
</QueryList>

 

2. 모든 스키마에서 검색 데이터 값이 있으면 모두 쿼리

<QueryList>
  <Query Id="0" Path="Security">
    <Select Path="Security">
*[EventData[Data and (Data="gmkim" or Data="mani4u")]]
</Select>
  </Query>
</QueryList>

 

Advanced XML filtering in the Windows Event Viewer | Microsoft Learn

 

Advanced XML filtering in the Windows Event Viewer

Table of contents Advanced XML filtering in the Windows Event Viewer Article 09/26/2011 4 minutes to read In this article --> Hi guys, Joji Oshima here again. Today I want to talk about using Custom Views in the Windows Event Viewer to filter events more e

learn.microsoft.com

 

728x90

+ Recent posts