logfile rotation

  • Thread starter Thread starter dwcasey
  • Start date Start date
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.
 
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.
 
Back
Top