After downloading fixevt the repair and conversion came down to two simple commands in powershell:
fixevt *.evt
Get-ChildItem . -recurse -include "*.evt" | foreach-object {wevtutil epl $_.FullName ($_.FullName + "x") /lf:true}
You can also use wevtutil to trim down an evtx file to a specific date range. For example:
wevtutil.exe epl Security Test.evtx /q:"*[System[TimeCreated[@SystemTime>='2010-11-01T05:00:01.000Z' and @SystemTime>='2010-11-11T05:59:59.999Z']]]"
Will output the Security log events between 1 Nov 2010 and 11 Nov 2010.
You'll need to substitute actual > and < for the > and <. Also, note that the time is in Zulu. The times in evtx files are in Zulu the event viewer and many other event apps tend to translate the time into local time
Now off to the fun of event correlation….
No comments:
Post a Comment