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:
Trace LogsIn 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\.
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\.
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.