How can I write an event log to a remote PC.
Posted on 2010-01-07
I am trying to add event logging to a client/server app. I would like all the clients to be able to write events to a remote machine so an admin will have them all in one place.
I have this working to create a new log and branch in the Event Viewer on the remote machine, "GLENN".
Dim s As New EventSourceCreationData("AppName", "AppLogName")
s.MachineName = "GLENN"
But when I execute this there is no way to specify the Machine Name and so the entry appears in the local machine log.
EventLog.WriteEntry("AppName", Message, EventLogEntryType.Information, 1234)
Thanks for your help,