If you are working with some custom solutions or you face any issue or unexpected behavior then to debug more ULS logs are very much helpful. By default, SharePoint maintains ULS logs for every request. Actually, ULS logs are the first place for a developer or an administrator to check out. Here I will show how you can change SharePoint 2013/2016 ULS log location?
ULS logs are stored on the file system of every SharePoint server in the <Program Files Directory>\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS folder.
Basically whenever some error occurred in the SharePoint site, then SharePoint will show the error message with a unique GUI id which is known as correlation ID. And internally it will put log entry in the ULS log with the same correlation id.
The ULS logs are text files and you can use ULS viewer to read properly from the logs files.
If you want you can change the number of days logs are kept and the total amount of disk space that can be used by the logs. All these things can be changed from the central admin by an administrator.
To change this, Open SharePoint 2013/2016 Central Administration and click on Monitoring and then in the Monitoring page, Click on Configure diagnostic logging from the Reporting section as shown in the fig below:
Then in the Diagnostic Logging page, Go to the Trace Log section and there change the path, Number of days to store log files and Maximum storage space for Trace Logs (GB) like below:
Now save the changes.
You may like following SharePoint ULS articles:
- Write to ULS log using PowerShell in SharePoint 2013
- View ULS Logs using SharePoint LogViewer in SharePoint 2013
- Get Error Details based on Correlation ID from ULS Logs in SharePoint 2013 using PowerShell
- ULS Viewer for SharePoint 2013 download
- PowerShell Command to collect ULS logs for specific CorrelationID
- SharePoint performance is down, factors to be considered
Hope this will be helpful to change ULS log location in SharePoint 2016/2013 from SharePoint central administration.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)