Are you lazy like me, and hate walking through thousands of lines of error messages logged in by ULS?

Well, now with PowerShell, life is about to get so much easier. Welcome to Get-SPLogEvent.

How to use:

Get-SPLogEvent | ?{$_.Correlation –eq “Your-correlation-id-GUID”} | ft Timestamp, Category, Message –Autosize

What you get is the category and message related to the specified correlation id.

This saved me quite a few hours of debugging on one of my last projects, otherwise it wouldn’t have caught my attention like so.

Enjoy Smile