fake ray bans fake cheap oakleys nike jerseys cheap christian louboutin online fake oakleys store fake cheap oakleys cheap authentic jerseys red bottoms shoes fake oakleys cheap oakleys cheap oakleys michael kors store wholesale jerseys china wholesale nhl jerseys cheap michael kors handbags cheap ray bans wholesale cheap jerseys cheap fake oakleys fake oakleys cheap nike jerseys cheap ray bans wholesale oakleys jerseys wholesale christian louboutin outlet cheap mlb jerseys oakley sunglasses authentic jerseys christian louboutin outlet cheap replica oakleys cheap oakleys outlet wholesale mlb jerseys michael kors handbags cheap jerseys online shopping cheap nhl jerseys cheap replica oakleys cheap fake oakleys cheap jerseys from china cheap fake oakleys 2016 cheap fake oakleys WHOLESALE AUTHENTIC JERSEYS cheap discount ray bans fake cheap oakleys cheap jerseys free shopping cheap christian louboutin online cheap jerseys replica oakleys cheap jerseys from china cheap christian louboutin wholesale mlb jerseys replica oakleys store replica ray bans fake oakleys cheap mlb jerseys free shopping cheap wholesale nfl jerseys discount oakleys discount oakleys fake oakley sunglasses cheap fake ray bans cheap oakley sunglasses authentic jerseys cheap fake discount oakleys wholesale oakleys cheap wholesale jerseys wholesale cheap jerseys wholesale nfl jerseys fake oakleys online authentic jerseys wholesale ray bans fake cheap oakleys cheap oakley sunglasses replica ray bans wholesale sunglasses wholesale mlb jerseys cheap cheap nfl jerseys cheap oakleys cheap fake ray bans cheap oakleys sale cheap fake ray bans oakleys sunglasses wholesale authentic jerseys fake cheap oakleys fake cheap oakleys authentic wholesale jerseys nhl jerseys cheap nfl jerseys cheap oakleys online wholesale jerseys fake ray bans online store michael kors handbags outlet replica michael kors fake ray bans ray bans outlet cheap christian louboutin cheap nba jerseys cheap ray bans cheap ray bans michael kors outlet discount oakleys wholesale nfl jerseys fake ray bans sunglasses fake cheap oakleys wholesale jerseys china wholesale nhl jerseys michael kors on sale discount oakleys online cheap jerseys wholesale wholesale oakley sunglasses cheap replica oakleys cheap michael kors bags discount oakleys cheap sunglasses ray bans christian louboutin shoes discount nba jerseys cheap oakleys cheap fake oakleys fake ray bans sunglasses cheap michael kors handbags oakley sunglasses cheap authentic nfl jerseys michael kors on sale fake cheap oakleys cheap nfl jerseys replica oakleys replica michael kors cheap oakleys cheap authentic nfl jerseys paypal cheap fake oakley sunglasses cheap oakleys cheap michael kors outlet cheap fake ray bans fake ray bans cheap authentic jerseys fake cheap oakleys cheap michael kors replica oakleys fake oakleys fake oakley cheap cheap jerseys wholesale michael kors handbags on sale cheap michael kors outlet authentic jerseys cheap oakleys online replica michael kors replicas oakleys jerseys wholesale 2016 cheap oakleys for sale discount ray bans cheap michael kors store cheap michael kors outlet ray bans sunglasses ray bans sunglasses sale wholesale china jerseys cheap mlb jerseys cheap fake oakleys wholesale nba jerseys wholesale jerseys wholesale oakleys wholesale authentic jerseys christian louboutin outlet cheap michael kors outlet cheap jerseys cheap jerseys michael kors bags fake oakleys shop cheap jerseys cheap oakley sunglasses cheap michael kors michael kors bags sale wholesale jerseys fake ray bans online fake ray bans sunglasses cheap jerseys china wholesale nfl jerseys fake oakleys cheap nhl jerseys fake oakleys cheap oakleys official jerseys replica christian louboutin online cheap michael kors outlet cheap nba jerseys cheap authentic ncaa jerseys michael kors on sale discount oakley sunglasses cheap elite jerseys replica oakleys cheap replica oakleys cheap michael kors online replica oakleys fake ray bans oakleys outlet cheap wholesale jerseys cheap replica oakleys replica ray bans christian louboutin online cheap michael kors handbags cheap sunglasses jerseys wholesale wholesale christian louboutin fake oakleys cheap jerseys cheap michael kors outlet cheap oakley cheap jerseys replica oakleys michael kors bags replica oakleys fake oakleys cheap wholesale cheap jerseys cheap michael kors outlet wholesale nhl jerseys paypal replica christian louboutin fake sunglasses cheap jerseys replica christian louboutin fake cheap oakleys cheap jerseys from china cheap jerseys cheap michael kors handbags christian louboutin online wholesale jerseys wholesale jerseys from china

Folder InetPub LogFiles are filling up the c drive of your SBS 2008 or 2011 server

The C drive of your Small Business Server 2008 or 2011 is filling rapidly and when you look with a disk analyzer tool like treesize or windirstat you see that the folder C:\inetpub\logs\LogFiles\W3SVC and a 9 or 10 digit number is several or even dozens of GB. When you open one of the logfiles you see only lines with “POST /ApiRemoting30/WebService.asmx – 8530” in it.

The log file directory belongs to the WSUS Administration IIS website, this is using port 8530. But it is not WSUS that is filling these logfiles rapidly but they are filled if you let the SBS console open. Beside closing the SBS console when not needed, there are 2 option to keep the log files under control.

Option 1:
Open Administrative Tools – Internet Information Services (IIS) Manager, browse through Sites and select the WSUS Administration site and open Logging.

You have 2 options, first you can set the “maximum file size (in bytes):” option under Log file rollover to limit the maximum log file size.
Second option is to completely disable logging, by choosing “Disable” on the Actions menu on the right.

Make sure after you changed anything choose Apply on the upper right and do a iisreset.

Option 2:
The another way for controlling these logfiles is, in SBS 2011 there is by default a scheduled task configured that cleans the logfiles older than 100 days. The same task is added to SBS 2008 by installing Update Rollup 5 (KB2458094) only the default setting with this task is to delete the logfile older than 30 days.

You can change the number of days by opening Administrative Tools, Task Scheduler, go to Microsoft, Windows, Windows Small Business Server 2011 Standard, right click the WSUSLogCleaner task and choose properties. Go to the tab Actions and choose Edit…

The value given by Add arguments (optional) is the value for the number of days the logfiles will be kept. So if your logfile directory is stil really big you can decrease the number of days to something more manageable like 30 days or if this is still to much to something like 14 days.

Conclusion:
The grown of the logfiles is caused by not closing the SBS console. My logfiles have shrunken to 20% of the original size with the console open whole day. There are 2 options to control the growth of these logfiles, IIS to disable logging or maximize the logfile size or the task added in sbs 2008 rollup 5 or sbs 2011 to control the maximum number of days logfiles are kept.

Update:
If you would prevent SBS Console from startup automatically read on here

Posted in Blog, SBS 2008, SBS 2011 by ronnypot at April 15th, 2011.
Tags: , , , ,

17 Responses to “Folder InetPub LogFiles are filling up the c drive of your SBS 2008 or 2011 server”

  1. Susan says:

    SBS 2011 doesn’t suffer from this as there’s a task to clean out the log files.

    • ronnypot says:

      I don’t think this works fine, my test sbs 2011 installation has produced more than 3GB of these logfiles in just a couple of weeks.

    • Ben the IT man says:

      If there is a task that clears out these log files as you say, did you not fancy sharing your information about it? where it is, how to use it????

      • ronnypot says:

        For just deleting log files older than x days, you can use forfiles.exe:

        forfiles.exe /P C:\inetpub\logs\LogFiles\W3SVC1 /S /M *.log /D -14 /C “cmd /c del @file”

        • Sreekanth says:

          Hi,
          I’m trying to delete my IIS inetpub logs using the mentioned command, but i’m getting below error.Can you please help me to proceed further.

          ERROR: Invalid syntax. ‘/C’ option is not allowed more than ‘1’ time(s).
          Type “FORFILES /?” for usage.

          Thanks,
          Sreekanth

          • ronnypot says:

            Probably your double quotes are not working, because the error you get is talking about /C is not allowed more than one time. The second /c should be used bij cmd /c.

  2. dmacleo says:

    my install has this already set to run daily at 2am. seldom see more then 10 entries.

  3. vicky says:

    this article has just saved me massive headaches, thank you!

  4. MrFaize says:

    Another useful tip

  5. VoucherCodes says:

    Really you guys saved my day. Too much concerned when the disk drive grown by 25GB, the disk ran out of space and application stopped working.
    Much appreciated

  6. andy says:

    Thank you for this usefull tip. I used option 2.

  7. Roland says:

    Thanks for the heads up as to why my drive was quickly shrinking, I gained back at least 30GB of my drive by reading this article…

    THANKS!

    Roland

  8. appmin says:

    Thank you so much. This is very good explained. This logging trouble stops working of exchange, in cause of low diskspace.

  9. pradeep says:

    Great knowldge..Wrote about the entire topic. Thanks

  10. ronnypot
    I have to thank you – you just saved a server admin amateur!!!
    Cheers buddy

  11. Nick says:

    Just had the same issue on a new SBS 2011 server installed 1 week before Christmas 2013. It is now the End of January 2014 and the C: partition has filled with 53GB (Yes 53GB) of log files located in the IIS Logfiles folder.

    I have relocated the logs now and dropped the 100 days history to 45 days in the WSUS cleanup schedule. I do have a habit of leaving the SBS Console open.

    The odd thing is we have another customer with exactly the same setup and the log files are a fraction of the size. Their server has been running for over a year and the log file haven’t increased above about 700Mb. Also the files are a lot smaller maybe 3 or 4MB as opposed to 3 or 4GB on the new server.

    • ronnypot says:

      Hi, In most of the case log files are filled more quickly if there is a problem and when a server has more in and outgoing emails is heavilier used, also leaving the SBS console open creates a lot of log files.

Leave a Reply

Sharing Buttons by Linksku