SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

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 :

share|improve this answer

Your Answer


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.