0

I have create this custom views event log call "Logs", and try to access this from C sharp, but on all possible ways i have not been able to get data from it. The custom is filtering to show only display some events and get this events only.

How can i Query data from Custom event log help needed

String log = "Logs";
                    EventLog aLog = new EventLog(log, machine);
                    EventLogEntry entry;
                    EventLogEntryCollection entries = aLog.Entries;
                    Stack<EventLogEntry> stack = new Stack<EventLogEntry>();
                    for (int i=index; i < entries.Count;i++)
                    {
                        entry = entries[i];
                        stack.Push(entry);
                        entry = stack.Pop();
                        index = i;
                        long eventid=entry.InstanceId;
                        if (eventid != 4634 && eventid != 4624)
                        {
                            userAccountManager(entry, stack, eventid);

                            ///
                        }
                    }

Here's the location of the log:

enter image description here

Grant Winney
  • 65,241
  • 13
  • 115
  • 165
blinding
  • 3
  • 4

0 Answers0