>>>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 2018-06-25T14:54:46+00:00

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

  • Author
    Posts
  • Muhammad Zaheer
    Keymaster
    Post count: 18

    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

You must be logged in to reply to this topic.