4
Answers

Reading Remote Event logs

Naeem Ahmed

Naeem Ahmed

14y
12.4k
1

How can i read event logs residing at a remote computer on the same network using System.Diagnostics.EventLog in .net. it works fine if i give my own (local) computer name. But i don't know how to pass the remote computer name.

EventLog eventLogs = new EventLog("Application","P036");

p036 is local computer name. how can i access logs on computer with name p037.

Please reply as soon as someone get it.

 

Thanks in advance.


Answers (4)