How to Change ULS Log Location in SharePoint 2013/2016?

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:

 sharepoint 2013 change uls log location
sharepoint 2013 change uls log location

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:

 sharepoint 2016 change uls log location
SharePoint 2016 change ULS log location

Now save the changes.

You may like following SharePoint ULS articles:

I hope this will be helpful to change ULS log location in SharePoint 2016/2013 from SharePoint central administration.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>