This SharePoint tutorial explains, how to change the ULS log location in SharePoint 2013/2016?
If you are working with some custom solutions or you face any issue or unexpected behavior then to debug more ULS logs is 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.
Change ULS Logs Location in SharePoint
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 a 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
- View ULS Logs using SharePoint Log Viewer in SharePoint 2013
- How to find SharePoint ULS log details based on correlation id using PowerShell
I hope this will be helpful to change ULS log location in SharePoint 2016/2013 from SharePoint central administration.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com