K
krukinews
Hi,
I'm trying to write small program that reads events from computer
and stores them in SQL database.
But I don't know hove to read logs for let's say last 24 hours,
one solution is to read all events in event log and then check time.
foreach(EventLogEntry Entry in logSystem.Entries) {
//
// check time
//
}
And if a have 100k entries, this can take time.
Can I read logs from last to first?
Mihalic Krunoslav
I'm trying to write small program that reads events from computer
and stores them in SQL database.
But I don't know hove to read logs for let's say last 24 hours,
one solution is to read all events in event log and then check time.
foreach(EventLogEntry Entry in logSystem.Entries) {
//
// check time
//
}
And if a have 100k entries, this can take time.
Can I read logs from last to first?
Mihalic Krunoslav