Home › Forums › SharePoint › SharePoint Administration › How to get SharePoint 2013/2016 logs using Merge-SPLogFile for specific date range
Tagged: 2013, 2016, date, How, logs, Merge-SPLogFile, range, SharePoint
The main command to get the logs is as below:
Merge-SPLogFile -Path “C:\Logs\Logs.log”
But usually we need the logs for specific time, please use below command on power shell to get the merged logs.
Make sure to have Logs folder exits in C drive before proceeding.
Merge-SPLogFile -Path “C:\Logs\MergeLogs.log” -Overwrite -StartTime “06/25/2018 10:00” -EndTime “06/25/2018 16:40”
It will take few minutes to get the full logs file
For more information check : https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/merge-splogfile?view=sharepoint-ps
You must be logged in to reply to this topic.