I've got a problem with my IIS (10.0.14393.0), that I've never seen before.

I used a standard installation for it, and didn't touch the logging options. Still though, it never writes logs during the day. Instead ALL of the logs for the whole day are written in one go at around 2 AM every day.

What option am I overlooking here and thus how can I change it to normal continuous log writing (instead of a whole day in one go) ?


1 Answer 1


Open IIS Manager.

In the Connections tree view, select your website.

In Features View, double-click Logging.

In the Log File Rollover section, select one of the following options:

Schedule: to create new log file that is based on one of the following values:

  1. Hourly: a new log file is created each hour.
  2. Daily: a new log file is created each day.
  3. Weekly: a new log file is created each week.
  4. Monthly: a new log file is created each month.

Maximum file size (in bytes): to create a log file when the file reaches a certain size (in bytes).The minimum file size is 1048576 bytes. If this attribute is set to a value less than 1048576 bytes, the default value is implicitly assumed as 1048576 bytes.

Do not create a new log file: there is a single log file that continues to grow as information is logged.


(emphasis mine)

  • So the continuous with multiple logfiles I saw on other installed IIS is new log file after XYZ bytes? (thus continuous and still time and again a new log file)
    – Thomas
    Jul 18, 2022 at 4:53
  • @Thomas Sounds likely, yeah.
    – Gantendo
    Jul 18, 2022 at 4:55
  • gotta ask though: what is the usual handling there? (in the past they created logfiles continuously and then a new logfile,.. but they wrote continuously into them. Now 1 big superlarge file taht you need to manually move or delete.....or the best you can hope for is hourly logs. So I'm wondering what is really used there by ppl
    – Thomas
    Jul 20, 2022 at 7:05
  • @Thomas It sounds like you are in the testing/debugging stage, so you'd want log entries to be as frequent as possible. But if everything is deployed and is working fine then you'll probably want to switch to daily logging for example. harrymc has explained how to flush the log buffer.
    – Gantendo
    Jul 21, 2022 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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