Event Log Filters


Get-WinEvent -FilterHashtable @{Path=”C:\Windows\System32\Winevt\Logs\Archive-Security-2017-05-11-11-28-38-673.evtx”;ID=4624,4634;data=”RRiad”} | % {
New-Object PSObject -Property @{
MachineName = $_.MachineName
TimeCreated = $_.TimeCreated
User = $_.Properties[5].Value
Domain = $_.Properties[6].Value
LogonType = $_.Properties[8].Value
SourceIP = $_.Properties[18].Value
Keywords = $_.KeywordsDisplayNames -join “;”
}
}
Select MachineName,TimeCreated,User,Domain,LogonType,EventID,SourceIP,Keywords | ft

————————*———————–

Get-WinEvent -FilterHashtable @{Path=”C:\Windows\System32\Winevt\Logs\Archive-Security-2017-05-11-08-55-49-805.evtx”;id=4624,4647;data=”MNaqvi”}

——————————————————————–

https://blogs.technet.microsoft.com/askds/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer/

How to parse Windows Eventlog

https://serverfault.com/questions/593383/script-to-export-custom-view-event-viewer-to-evtx-powershell

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: