List Aggregator App (SPFx)

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

sharepoint 2013 change uls log location

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.

SharePoint deveopment training course

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:



 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:

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

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Bijay Kumar

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 SharePointSky.com

View all posts by Bijay Kumar →