Zipping log files

Dave

Perch
Is there a way to automate the zipping of IIS log files on a daily basis? Or can this only be done on an individual basis via a ticket?

Sometimes I'd like to see the raw log files but downloading a 400 to 500MB log file on a daily basis is a bit much. Plus zipping them would allow me keep them longer before deleting them.

Thanks for any help / info.
 
Write a PHP page to zip the logs into a suitably-named file. Call that PHP page daily with a cron job or from your desktop using a Windows Scheduled Task.

I'm sure .NET offers some compression library functions and there's probably something for ASP, too. There's a perl script for it at http://www.daniweb.com/techtalkforums/thread16962.html and I'm sure you could find other code through a little googling.

Tim
 
Back
Top