How to get SharePoint 2013/2016 logs using Merge-SPLogFile for specific date range

///How to get SharePoint 2013/2016 logs using Merge-SPLogFile for specific date range
How to get SharePoint 2013/2016 logs using Merge-SPLogFile for specific date range2018-10-16T12:51:22+00:00

Front Page Forums SharePoint SharePoint Administration How to get SharePoint 2013/2016 logs using Merge-SPLogFile for specific date range

Viewing 1 post (of 1 total)
  • Author
    Posts
  • ScientistZ
    Keymaster
    Post count: 39

    How to get SharePoint 2013/2016 logs using Merge-SPLogFile

    Solutions:

    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.

    Add-PSSnapin Microsoft.SharePoint.Powershell

    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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.