merge splogfile correlation id start time end time

In this post we will discuss how to merge splogfile correlation id start time end time. If you need to find all log files insharepoint between certain time duration with in which you think issue happened you can use these powershell commands. If you enabled verbose logging for certain durataion in sharepoint server, then if is very useful. Analyzing or managing sharepoint logs out of too much log files and servers is very difficult. Sometimes its quite impossible to go each server and check the log file. Using powershell, we can gather all logs in sharepoint servers at a single place in a single file. This will be easy to analyze by using sharepoint log viewer. Therefore we will use powershell to merge sharepoint log file of multiple sharepoint servers at once place.

Advertisements

merge splogfile by correlation id

Follow the powershell commands below to merge or gather or find all logs files from all sharepoint servers at a single place.

Merge-SPLogFile -Path "location to save file" -overwrite -Message "*<scope>*" -Correlation "<correlation id>"
Merge-SPLogFile -Path "C:\MergeLogFileByCorrelationID.log" -overwrite -Message "*monitored*" -Correlation "8a16579f-1d6f-208b-cc49-1604fc0dbc86" #scope included
Merge-SPLogFile -Path "C:\MergeLogFileByCorrelationidNoScope.log" -Correlation "8a16579f-1d6f-208b-cc49-1604fc0dbc86" #No Scope included
Advertisements

merge splogfile by start time end time

Follow the powershell commands below to merge or gather or find all logs files from all sharepoint servers by timestamp means to find log files created between a praticular duration of time.

Merge-SPLogFile -Path "C:\MergelogDateTime.log" -overwrite -StartTime "5/29/2020 12:20:57 PM" -EndTime "5/29/2020 12:40:57 PM"

Follow the video to get more detail step by step in visual view for better understanding.

merge splogfile by correlation id | start time end time in sharepoint logs using powershell

Advertisements


Categories: administration, Monitoring, SharePoint 2019, SharePoint Logs

Tags: , , , , , , , , , , , , , , , , , , ,