Click here to Skip to main content
15,891,903 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 servers where a event get logs (with different source name)
I have to read out the message from both server's log and fetch out the time written in the message and use it for further project purpose by manipulating it

Can any one help me with this.
Posted

1 solution

VB
Imports System.Diagnostics

    Public Sub ListEventLog(ByVal logName As String)
        Dim objLog As New EventLog
        objLog.Log = logName

        If objLog.Entries.Count > 0 Then
            For Each l As EventLogEntry In objLog.Entries

            Next
        End If
    End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900