Command to tail SharePoint Log

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\

Leave a Reply

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