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


Leave a Reply

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

About me

I am web developer, tech enthusiast and fitness junkie 🙂

Calendar

July 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031