Monday, 21 November 2011

SharePoint 2010 - Move Log Files

By default the SharePoint Logs are located within the hive at:

“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS”

In order to mitigate the risk of running out of disk space on the C drive you may wish to change to location of the log files.

This can be achieved through either Central Administration or PowerShell.

Central Administration

Within Central Administration click Monitoring then Configure diagnostic logging

Configure Diagnostic Logging

Within the diagnostic logging page,  scroll down to the Trace Log section and change the log file Path

Diagnostic Logging

PowerShell

You can check the current location of the log files using:

  • Get-SPDiagnosticConfig

Get-SPDiagnosticConfig

You can set the location of the log files using:

  • Set-SPDiagnosticConfig –LogLocation “Path”

No comments:

Post a Comment