To change the location of
Diagnostic logs and Usage logs we need to follow the below steps:Diagnostic logs
1. Create a folder under below location:
\Program
Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS”
Warning: - Keep in mind that this is a farm-level setting, not server level, so
every server in your farm must have that location available. If you try to set
a location that is not available on all of the servers in the farm, you'll get
an error message. You'll also need to keep this in mind when adding new servers
to your farm. Your new server must have this location as well.
2. Run the below powershell command:
Set-SPDiagnosticConfig
-LogLocation "E:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\14\LOGS”
Usage logs
1. Create a folder under below location:
\Program
Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS”
Warning: - Keep in mind that this is a farm-level setting, not server level, so
every server in your farm must have that location available. If you try to set
a location that is not available on all of the servers in the farm, you'll get
an error message. You'll also need to keep this in mind when adding new servers
to your farm. Your new server must have this location as well.
2. Run the below powershell command:
Set-SPUsageService -UsageLogLocation "E:\Program Files\Common
Files\Microsoft Shared\Web Server Extensions\14\LOGS\"
Note: - It is important
to note that this only changes the location that new log files are written to.
It will not move existing log files. You must move them yourself.
No comments:
Post a Comment