Display SharePoint logs by Correlation ID with PowerShell

Here is small script, that displays SharePoint logs by correlation ID in last 5 miutes. The parameter out-gridview displays logs in a new window.


get-splogevent -starttime (get-date).addminutes(-5) | ?{$_.Correlation -eq 'your correlation ID'} | out-gridview

Marek

Marek

Currently working as SharePoint Developer combining both back-end & front-end development scenarios. Also enthusiastic about Office 365 & Azure solutions.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *