IIS 5 & IIS 6
general question about logging
Last post Mar 19, 2008 01:49 AM by qbernard
Mar 13, 2008 10:28 PM|fzaynoun|LINK
does IIs do some delayed logging, i mean i am checking the logs in my server and the last request is 3 hours old, and i am doing requests and they're not logged. however each time i check my log new records are added, old records (2-3 hours old).
is this normal, a problem, and how can i do to solve it ? and what can i do to get a link for "my posts" to be able more easily to track my question!"
iis logging delay post get
Mar 14, 2008 08:46 AMfirstname.lastname@example.org|LINK
Logs are cached in memory and written to disk, but normally not three hours later. But if you open a log in notepad, then make requests, the log won't update in Notepad. Notepad only reads a file at the time it's opened, it doesn't pick up changes dynamically.
Mar 18, 2008 10:29 PM|fzaynoun|LINK
so this delay depends on what, and how can i force a flush or something on logs.
Mar 19, 2008 01:49 AM|qbernard|LINK
I recalled the buffer is in 64k page, and flush to disk every minute. If you request to stop the service, or buffer is full, IIS will flush the log.
also hidden key -
DisableLogBuffering - default is 1 min.
Note - MS doesn't recommend disabling this...
For IIS 7, you can use netsh http flush logbuffer at command line