Huge Web Server Extensions Log Files on TFS Server

Problem - LOGS created in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS approximately 200 Mb each every half hour I observed our TFS server disk space was reduced to 100 Mb and I did not know the reason why. Very interestingly I observed that the LOGS i.e. from C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS occupied about 29.6 Gb. SHOCKED!!! A careful observation showed that a log was being generated every half hour and each log varied from 200 to 400 Mb.

Why its doing it: This folder is where SharePoint stores usage statistics until they are processed.  You can safely delete or archive them two days after the date on the folder.  If they haven't been processed and sumarized by then they never will be.  They contain useful information but the system doesn't need them.

Solution:

Start -> Administrative Tools -> SharePoint 3.0 Central Administration -> Operations -> Diagnostic Logging -> Event Throttling: And select the following options and click on OK
  • Select Category = ALL
  • Least critical event to report to the event log = Error
  • Least critical event to report to the trace log = High
  • Click OK