Cant detect Event Log Entry after clearing

Discussion in '.NET' started by BobbyOwens, Feb 17, 2009.

  1. BobbyOwens

    BobbyOwens

    Joined:
    Jan 23, 2009
    Messages:
    3
    Hi,

    I currently have an application that monitors the windows events logs. The problem is that if a user clears the event logs on Windows 2003/XP, the eventlog object doesn't detect the 1st new entry that windows automatically adds to say that the event log has been cleared.

    Events are raised for all subsequent entries, but this "important" one to inform us that the log's been cleared is missing.

    If I go through the "Entries" collection, the 1st entry seems to be the original 1st entry, not the new 1st entry.

    It does, however, seem to work fine on Vista.

    Is there any way I can detect the clearing of the event log and reread it before an event is raised for another entry being added?
    BobbyOwens, Feb 17, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob Meade
    Replies:
    0
    Views:
    383
    Rob Meade
    Apr 27, 2004
  2. MattC

    Event Log Entry - excess info

    MattC, Jan 7, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    6,045
    MattC
    Jan 10, 2005
  3. Nagaraj
    Replies:
    1
    Views:
    853
    Lionel B
    Mar 1, 2007
  4. John Kotuby
    Replies:
    2
    Views:
    331
    John Kotuby
    Nov 25, 2008
  5. cherryparadise001@gmail.com

    ASP Problem: "IIS log failed to write entry" in Event Log

    cherryparadise001@gmail.com, May 26, 2006, in forum: ASP General
    Replies:
    0
    Views:
    1,292
    cherryparadise001@gmail.com
    May 26, 2006
Loading...

Share This Page