{"id":3395,"date":"2013-08-14T00:00:00","date_gmt":"2013-08-13T22:00:00","guid":{"rendered":"http:\/\/www.theill.com\/blog\/2013\/08\/14\/immediately-flush-iis-log-for-real-time-tail-to-avoid-60-second-buffer-delay\/"},"modified":"2013-08-14T00:00:00","modified_gmt":"2013-08-13T22:00:00","slug":"immediately-flush-iis-log-for-real-time-tail-to-avoid-60-second-buffer-delay","status":"publish","type":"post","link":"https:\/\/www.theill.com\/blog\/2013\/08\/14\/immediately-flush-iis-log-for-real-time-tail-to-avoid-60-second-buffer-delay\/","title":{"rendered":"Immediately flush IIS log for real time tail to avoid 60 second buffer delay"},"content":{"rendered":"
I wanted to tail my IIS log in realtime to avoid having to wait 60 seconds as is the default on IIS 7. I found out that I could run the command<\/p>\n
> netsh http flush logbuffer\n<\/code><\/pre>\nThis is great but I wanted to do a tail so this short script does the trick for you (I assume you have cygwin installed if you’re on Windows)<\/p>\n
Run command every second in the background and flush output (the “Ok.” message)<\/p>\n
$ while true; do netsh http flush logbuffer > \/dev\/null; sleep 1; done &\n<\/code><\/pre>\nThen you’re able to do your regular tail<\/p>\n
$ tail -100f u_ex130814.log\n<\/code><\/pre>\nand have it update in real time.<\/p>\n","protected":false},"excerpt":{"rendered":"
I wanted to tail my IIS log in realtime to avoid having to wait 60 seconds as is the default on IIS 7. I found out that I could run the command > netsh http flush logbuffer This is great but I wanted to do a tail so this short script does the trick for … Continue reading Immediately flush IIS log for real time tail to avoid 60 second buffer delay<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"yoast_head":"\nImmediately flush IIS log for real time tail to avoid 60 second buffer delay • Peter Theill Site<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n