SharePoint 2016 Change Default Log File Location

This SharePoint 2016 tutorial, we will discuss how to change the default log file location in SharePoint 2016. The same way we can change the log file location in SharePoint 2013 and SharePoint 2010 also.

What is default log file location in SharePoint?

SharePoint tracks all the transactions in a log file and by default SharePoint log files are stored in the following location

  • SharePoint 2016:
    C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\16\LOGS
  • SharePoint 2013:
    C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
  • SharePoint 2010:
    C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

Change Share Point 2016 log files location to a different drive?

We can change the default log file location in SharePoint 2016. The following steps to be followed to change the log file driver location to another drive.

Step-1: Go to SharePoint 2016 central admin. Click on Monitoring.

sharepoint 2016 logs location
sharepoint 2016 logs location

Step-2: In Monitoring Page click on “Configure diagnostic logging”.

sharepoint 2016 change log file location
sharepoint 2016 change log file location

Step-3: Here in “Diagnostic Logging” in the below we can see the path field. In path field we have to give the path in which path we want to store the log files. Click on ok.

change sharepoint 2016 log file location
change sharepoint 2016 log file location

Step-4: Click on “Configure usage and health data collection”.

sharepoint 2016 uls log location
sharepoint 2016 uls log location

Step-5: Change the path here where you want move the log files . Click on ok.Now we can see our log files are in G drive.

uls log location sharepoint 2016
uls log location sharepoint 2016

You may like following SharePoint 2016 tutorials:

This tutorial, we learned how to move the log file locations from one drive to another drive in SharePoint 2016, SharePoint 2013 or SharePoint 2010.

>