Is is possible to auto shrink the log file in IIS or is there an option provide in IIS. The only way I know is to compress the log file directory. If there is any way to auto shrink function that will shrink the file for a particular period.

link|improve this question

47% accept rate
feedback

2 Answers

Why not roll the logs daily, and remove files older than 'n' days?

link|improve this answer
feedback

In IIS the log files can be set up to start a new log file each day. There is no compression capability in IIS for the logs. Best bet is to setup a job that will archive the log files somewhere else to prevent running out of disk space.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.