IIS Logs gettig huge

Posted on 2011-05-05
Last Modified: 2012-06-21
My Small Business Server 2008 IIS LOG folder is getting very large (over 2.5 Gb). It seems to be impacting my MOSS SharePoint site.
How do I trim it down?
Is there a script that I can use to keep the size smaller?
There seems to be a file for each day in the past 31 days. Is it safe to delete old files?
How/Where do I set the number of days of files to keep?
Question by:LostInWindows
    LVL 21

    Accepted Solution

    Well know issue with SBS... please review this post and let us know.
    LVL 26

    Expert Comment

    by:Leon Fester
    IIS creates a new log file for each day, so those files are probably there since you setup your IIS site.
    You can control the amount of logging being done by selecting the specific items that needs to be logged.
    However, as a rule I would normally recommend that unless you're using the log files for reporting or troubleshooting then you can safely turn off the logging.
    LVL 1

    Author Closing Comment

    Thanks, the article helps significantly.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    I’m often asked about newer and larger USB drives connected to SBS2008 and 2011 failing Windows Server Backup vs the older USB drives not failing. As disk space continues to grow and drive technology change SBS2008 and some SBS2011 end up with the f…
    You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now