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 script to archive log files…

Read more

How to Use ULS Log Viewer to Analyze SharePoint Errors?

Introduction If you’re a SharePoint administrator or developer, you know how crucial it is to have the right tools at your disposal for troubleshooting and diagnosing issues. One such tool that can be incredibly helpful is the ULS Viewer, which allows you to view and analyze the Unified Logging Service (ULS) logs…

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 affect server performance. Also, it 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 Server 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 2016? While it’s possible to open and search ULS…

Read more