I have an application reading some data from the event log, this application performance is too bad if the event log was too large, i.e. more than 30,000 entry.
I am searching for a faster way to get the info from it,
I have used for now two ways, using WMI the query was {Select message from Win32_NTLogEvent Where Logfile = 'System' and EventCode = '1' }
I used System.Diagnostic.Eventlog.GetEventLogs(); which also takes too much time
What should I use to enhance the search speed?