troubleshooting Question

VB.NET Read Event Log - Advanced Views

Avatar of BoltonWanderer
BoltonWanderer asked on
Visual Basic.NETWindows Server 2008Windows Server 2012
6 Comments1 Solution672 ViewsLast Modified:

I am interestedin querying the event log programaticlaly.

I currently have something very simple which works (Below). However I want to get some more information such as the information which is contained in the Details Tab > XML View and/or within the General Tab from the actual event log.

   Dim eventlog1 As New EventLog("Security")
        Dim entry As EventLogEntry
        Dim intNum As Integer = 0
        For Each entry In EventLog1.Entries

            TextBox1.Text &= (entry.ToString) & " -  " & entry.Data.Count & " - " & entry.TimeWritten & " - " & entry.EventID.ToString & vbNewLine

Open in new window

Is this possible?

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros