Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1396
  • Last Modified:

IIS Logs C:\WINDOWS\system32\LogFiles\W3SVC1

Hi Experts,

I have an SBS2K3 Server with 10 users and the IIS logs are 400mb in space each, and unless I manually delete them they fill up the server.

We do a backup ever 6 hours so it would be great if I could get them to auto cleanup or reduce their size to something more managable.

Look forward to reading your comments
0
isdd2000
Asked:
isdd2000
  • 3
2 Solutions
 
gaurav05Commented:
Hi,


check this powershell script to compress IIS logs files and remove
it as per your schedule.

Let us know if you need some more help
0
 
Sushil SonawaneCommented:
Open the IIS Manager ---> right click web site --> web site-->enable logging--->properties -> advance --> disable the extended logging options.

Disable the option in extened logging which you do not want.

It will help you to reduce the new logs file size.

(http://support.microsoft.com/kb/313437)

OR

Change the log file path and store on the another drive or cut old log file and store external drive.
0
 
isdd2000Author Commented:
Hi,


Is it possible to write a VB script to do this for me?
0
 
gaurav05Commented:
Hi,

Check attach .txt file in which contain script to compress log files of IIS.

To run this script you need to save this file in .vbs format using save as

and you required Gzip on your server to compress the files.

Let us know if you need more help.

Thanks
-Gaurav
VB-iis-compression.txt
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now