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.
 

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

Similar Threads

trimming logfile 1
Rotate Firewall logfile 3
Movie trailer crafted by an AI 3
Command Line Processing 6
Stealth Destroyer USS Zumwalt 3
WMI trace log 7
Program Flow 3
events problem 2

Back
Top