Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can I prevent my sharepoint server from generating mass amounts of logfiles? In the central adminstration I can only configure the maximum size per file + the time to keep them.

With the managment console I'm also not able to see a setting like "MaxNumberOfLogfiles" or something like that.

share|improve this question
add comment

3 Answers 3

up vote 2 down vote accepted

Log files are generates every 30 minutes by default. So you can manage count of files by changing time to keep files and new file creation duration.

MSDN: You can change the interval by using Windows PowerShell with the Set-SPDiagosticConfig command. The following code snippet configures SharePoint to create a new trace log every 60 minutes.

Set-SPDiagnosticConfig -LogCutInterval 60
share|improve this answer
add comment

You have several options.

  1. You can set the max size in GB that the log files can occupy.
  2. Move the log file location other than default which allows more space
  3. Make sure the event throttling is configured properly. I would suggest using default throttling levels and setting to “information” or “verbose” only for selected categories and only when it is needed.
share|improve this answer
add comment

You can change the frequency of the logging. For example below Powershell command sets logging interval to 3 hours

Set-SPDiagnosticConfig Set-SPDiagnosticConfig -LogCutInterval 180

Also, you can fine tune the trace and event log levels from Event throttling section in Central administration.

For details, Check this out : http://extreme-sharepoint.com/2012/05/25/troubleshooting-sharepoint-2010-tools-techniques/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.