I have been looking all over the place to just figure out what this "Level" means running Get-WinEvent.
For example,
Get-WinEvent –FilterHashtable @{logname=’application’; level=2; starttime=$time; id=20}
What does level=2 represent here?
The reason that I am asking is I am trying to validate the severity of each log and does that level=2 represent anything related to severity.
Let's try and find out:
A quick msdn-search for EventLogRecord points us to the EventLogRecord.Level Property
A quick search in my log to list some level-values:
It also says on the Level-property page that it uses the
StandardEventLevelenum, so lets list it's values: