I'm in the process of migrating our servers to a new host and have almost finished transferring the 150 sites we manage. In the process of shuffling things over, I noticed that we have logs for all of our sites dating back to 2006 and many of those sites have a daily log size of several MB each. I imagine our HDD space is taking quite a hit.
I was going to write a quick script to archive past logs at the start of each month but wanted to get a second opinion here -- how long before a site log can be completely deleted? Is there a general rule of thumb or practice regarding log files? Why isn't there an auto delete/archive feature built into IIS?
Writing a script and throwing it into a scheduled task is easy whichever route I go... I just figured I'd better ask the pros before I go and jack something up. For reference, we're running Windows Server 2008 x64 (IIS7).
I was going to write a quick script to archive past logs at the start of each month but wanted to get a second opinion here -- how long before a site log can be completely deleted? Is there a general rule of thumb or practice regarding log files? Why isn't there an auto delete/archive feature built into IIS?
Writing a script and throwing it into a scheduled task is easy whichever route I go... I just figured I'd better ask the pros before I go and jack something up. For reference, we're running Windows Server 2008 x64 (IIS7).