Monday, February 17, 2014

Merge SharePoint Log files in a farm

As we know that SharePoint logs are generated in all servers in a farm. So if you would like to find the log for your application issue, you may need to look into the log in all WFE/Index servers. In that case you do not need to open logfile from each server rather you can use Merge-SPLogFile powershell command in one server to get the ULS logs for the entire farm and investigate it.
Example:


Once the logfile got generated and you can open in UlsViewer tool to epen the logfile.
One intersting thing is that you can also filter logfiles by specifying ‘second’ duration in the command. This is really required as thousands of logs got created in a minute.



To know more in details please refer the below link
 

No comments:

Post a Comment