« Previous Next »

Thread: Flushing IIS logs to disk

Last post 02-03-2007 12:27 AM by qbernard. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 02-01-2007, 11:52 AM

    Flushing IIS logs to disk

    Hi,

    I would like to flush the IIS 6.0 logs to disk, without having to wait for the next 64k chunk to be hit, and without using iisreset.  I know this can be done in IIS 7.0, but I was wondering if it can be done in IIS 6.0, by using a command line application, com object or anything else.

     

    Thanks,

    Jon 

    Binary Fortress Software
    http://www.binaryfortress.com
  • 02-02-2007, 1:36 AM In reply to

    Re: Flushing IIS logs to disk

    There's metabase key for that... LogBufferSize
    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/60a90c91-a8d0-43b6-89db-a431d0ea0cb4.mspx?mfr=true

    I also believe there's another key that control the flush interval - which is 1 min.  Now, why do you need to flush log immediately? and how do you do this in IIS 7?

    Cheers,
    Bernard Cheah
  • 02-02-2007, 1:46 PM In reply to

    Re: Flushing IIS logs to disk

    I would like to be able to see the requests coming into the web server in near real-time, but I don't want to have to install an ISAPI filter to intercept requests.  I figured the only good way was to read the log files, but they don't get updated frequently enough.  With IIS7 you can run the command "Netsh http flush logbuffer" and it will flush the logs to the hard drive.  Is there any way to do this with IIS6, either command line or through a com object?

    Thanks

    Binary Fortress Software
    http://www.binaryfortress.com
  • 02-03-2007, 12:27 AM In reply to

    Re: Flushing IIS logs to disk

    In this case, you might want to try this
    DisableLogBuffering
    http://forums.iis.net/thread/1294650.aspx

    take note of the performance issue. good luck.

     

    Cheers,
    Bernard Cheah
Page 1 of 1 (4 items)