logfile rotation

D

dwcasey

Are there any commands in Windows to 'cut' an open logfile to keep the
size down?

We're redirecting the output of an application startup to a
logfile...it grows non-stop until we stop the application.

If I had a unix-like cut command, I should be able to keep the size
down to something manageable. Thanks.
 
B

Brian Cryer

Are there any commands in Windows to 'cut' an open logfile to keep the
size down?

We're redirecting the output of an application startup to a
logfile...it grows non-stop until we stop the application.

If I had a unix-like cut command, I should be able to keep the size
down to something manageable. Thanks.

I think that "out of the tin" IIS will generate a new log file on a daily
basis - something akin to log file rotation under Apache.

Open up Internet Information Services
- Expand the local computer
- Expand Web Sites
- Right click "Default Web Site" and select properties
- On the "Web Site" tab, under "Enable Logging" click the "Properties"
button.
there you have the option to change how frequently IIS creates a new log
file - basically hourly, daily, weekly or less often, or you can do it by
log file size.

I hope this is what you were after.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top