1
Answer

how to write query for ExportLogAndMessages in c#?

Photo of Sumit Kumawat

Sumit Kumawat

7y
2k
1
Hi all,
i am working on wpf application and in this im exportin evtx files using ExportLogAndMessages function using below code
 
EventLogSession logsession = new EventLogSession();
logsession.ExportLogAndMessages(LogName, PathType.LogName, "*", subfolderpath, false, CultureInfo.CurrentCulture);
and it is fetching all the data but now i want to fetch the events only between of selected time period so please tell me how to write query to get event which are created in particular time span.
TIA 
 

Answers (1)