Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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