I am trying to limit the last 100 errors that have the same structure as an ip address( example {1,3} . \ D {1,3} . \ D {1,3} . \ D {1, 3 }) using get-eventlog. I get the output printed out which shows the last 100 events on the computer, but how can i structure the output and how do i get the error messages from eventlog in powershell?
Get-Eventlog -Newest 100 -LogName "Application"