Command to tail SharePoint Log

Command to tail SharePoint Log

2018/09/20 SharePoint 0
get-childitem "C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\16\logs\"|sort LastWriteTime -Descending |select -first 1|get-content -tail 1 -wait

If in SharePoint 2013, change your path to C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\13\logs\

read count : 22

Leave a Reply

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