After the initial configuration of the MOSS farm, it is common practice to change the MOSS diagnostic and trace logs to the separate dedicated volume other than C drive to make sure C drive wont’ run out of the space. By default, SharePoint logs everything happens on the server on the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS\ directory.
To move the SharePoint logs on the MOSS farm, it is important to remember that if you have multiple front end/application servers in the farm, you have to create the same volume on all the MOSS servers (front end servers and application servers) with the same name. You also need to create similar directory structure on all the MOSS servers. Central Administration site won’t create the directory for you. Make sure directory pre-exists. Unified logging service will throw following error in the event log, if you attempt to move the log files without the pre-existence of the destination directory.
There are two kinds of SharePoint logs needs to be moved to the separate volume – Trace Logs and Usage Analysis Logs. Trace Logs would be very important tool for any SharePoint administrator to analyze any problems with the MOSS servers. You can perform these commands while server is being used. SharePoint will create the log files on the new location and start logging the activities.
Here is the step by step process –
Create the directory structure on the volume with the similar name on the all MOSS Servers in the farm (except database server).
To move the SharePoint trace logs, Visit the Central admin site and browse to the – Central Administration > Operations > Diagnostic Logging and update the log file location to your desired location.
To move the Usage Analysis logs, Visit the Central admin site and browse to the – Central Administration > Operations > Usage Analysis Processing and update the log file location to your desired location.