Take the 2-minute tour ×

My requirement is to read event entries from event log and store them in database. After reading single entry and storing into database, I need to remove this from event log.

I am using EventLog class to read event entries on same computer. This class is supporting to read entries one by one in loop but it's not allowing to delete entries one by one.

EventLog class supports to clear all entries in one shot only. I can't clear the full event log because new events are being added while read operation is going on.

Please let me know if I can use a different .Net class to achieve this.

share|improve this question
possible duplicate of C# Manage windows events –  Gray Jun 27 '13 at 13:20
any final solution with full source code sample? –  Kiquenet Jun 5 at 6:53
add comment

1 Answer

It's not possible.. It's all or nothing. See this question:

C# Manage windows events

share|improve this answer
the answers are quite old. framework changes may provide new features. –  Romil Jun 5 at 7:24
add comment

Your Answer


