Naeem Ahmed

Naeem Ahmed

  • NA
  • 3
  • 0

Reading Remote Event logs

May 26 2009 2:20 PM

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)