« Previous Next »

Thread: Strange IIS Log Behaviour

Last post 10-30-2009 1:37 PM by jeff@zina.com. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-30-2009, 6:24 AM

    • raajesh
    • Top 500 Contributor
    • Joined on 08-06-2009, 7:25 AM
    • Posts 19

    Strange IIS Log Behaviour

     Hi ,

      I am using IIS 5.1 , as a part of my application I had to read IIS  FTP logs from my application which needs to be updated, but when I start the application using this "http://www.codeproject.com/KB/files/LogMonitor.aspx"  I found it reads the log messages as long as connection is not made, once any client makes connection , the log size automatically increases to 64k and once the IIS FTP is disconnected , the file size comes to its actual size  by which this application is not able to read logs in real time!

     I wrote my own application before testing with this application,It was same behavior as of this application . I found out the when IIS FTP is connected , the log size increses to 64k and when open in a notepad it shows huge "NULL"  charaters appended at end of the file, once the IIS is stopped and if the log file is opened the "NULL" charaters are not visible!.

     I think something is going wrong when a client connects to IIS server. The time which is logged is also different from system time!

     I would like to know if there is any pointers to this problem which I am facing in reading the  logs, I found the application link which I have sent is used by many users who have mentioned it as excellent application , but some how I am not able use the application on my system.

    I uninstalled IIS and re-installed it , It was all same,I appriciate if anyone in the form give me some pointers in this issue.

     Thanks.

     

     

     

     

  • 10-30-2009, 1:37 PM In reply to

    Re: Strange IIS Log Behaviour

    Nothing odd at all.  The log file is opened by FTP and then closed after the log is wirtten.  You can't directly get anything from it during this time.  And yes, that means it can't be read as real time logging.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (2 items)
Microsoft Communities