Sunday, April 12, 2015

Configure Logging for SharePoint 2013

All log files can become large. If you get a major error that fills up log files quickly, a consequence is your disk space can fill up and cause your SharePoint site to crash. So avoid this issue (and keep your system administrators happy) by moving all your log files to an external drive. This process applies to both SharePoint 2013 and SharePoint 2010.

Configure your logs to an external drive (anything other than C:). I'll use a D: drive in my example. I like to create a LOGS folder and underneath create separate folders for all my key logs.

IMPORTANT! Make sure you configure the same folder structure on the same drive on all your servers in your farm.

Here’s the folder structure I use:
  • LOGS
    • Trace
    • Usage
    • IIS

SharePoint Logs

Trace Logs

In Central Administration, go to Monitoring > Configure diagnostic logging. Near the bottom on the screen, update the Path to your external drive location such as D:\LOGS\Trace\.

Usage Logs

In Central Administration, go to Monitoring > Configure usage and health data collection. Under Log file location, update the path to your external drive location such as D:\LOGS\Usage\.

IIS Logs

In IIS under the server name, click Logging. Update the directory location. Staying consistent with my example, I would update the location to D:\LOGS\IIS\. You’ll have to do this step directly on all servers in your farm.

That’s it! Now all your log files are easily found in one location and they won’t cause your SharePoint to crash if the logs fill up.

1 comment:

  1. sharepoint is a web based collaborative is basically an intranet and content management can get more information at sharepoint online training.Read More At sharepoint online training india