Skip to content

Instantly share code, notes, and snippets.

@jymcheong
Created July 17, 2017 06:56
Show Gist options
  • Save jymcheong/d39ab91e347732f6920c11bc557c8365 to your computer and use it in GitHub Desktop.
Save jymcheong/d39ab91e347732f6920c11bc557c8365 to your computer and use it in GitHub Desktop.
nxlog query block
<Input in>
Module im_msvistalog
ReadFromLast True
Query <QueryList>\
<Query Id="0">\
<Select Path="Security">*</Select>\
<Select Path="System">*[System/Level=4]</Select>\
<Select Path="Application">*[Application/Level=2]</Select>\
<Select Path="Setup">*[System/Level=3]</Select>\
<Select Path="Windows PowerShell">*</Select>\
<Select Path="Microsoft-Windows-Sysmon/Operational">*</Select>\
</Query>\
</QueryList>
# For windows 2003 and earlier use the following:
# Module im_mseventlog
</Input>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment