Archive ULS & IIS Log Files in SharePoint using PowerShell

Requirement: Archive Log files of IIS and ULS Log.  Log files in SharePoint (both IIS Log and ULS Log) could grow and fill-up the disk space based on your configurations and usage. There are many scripts available in various blogs and boards and Here is my own script to archive Log files…

Read more

How to Use ULS Log Viewer to Analyze SharePoint Errors?

ULS logs are unavoidable in SharePoint administration and support. This post describes the basic usage of ULS log viewer to reveal actual error message in SharePoint 2013 environment. Scenario: You got an E-mail from end-user saying: They received a typical “An unexpected error has occurred.” page with some GUID, time stamp, etc….

Read more

Change Log Files Location for ULS, Usage and Health Data Collection

No doubts, diagnostic logs and “Usage and health data” logs are extremely helpful. However, it could cause performance issues and slow down SharePoint if not managed properly. These logs can use large amounts of drive space and can affect server performance. Also, can quickly fill the system disk which could potentially bring…

Read more

Merge-SPLogFile: Merge SharePoint Log Files from Multiple Servers

Problem: In a multi-server SharePoint farm, if you need to trace an issue, you have to log in and review the ULS logs on each server in the farm. This process could be tedious in multi-server farms since you’re not sure on which server the error has occurred. Solution: Use the Merge-SPLogFile…

Read more

SharePoint 2013 Correlation ID – Get Detailed Error using PowerShell

Correlation IDs are introduced in SharePoint 2010 to uniquely identify each error encountered. Later, these correlation IDs are used as a starting point reference to get the complete error details from ULS logs during troubleshooting issues. How to check correlation ID in SharePoint 2013? While it’s possible to open and search ULS…

Read more