Write eventlog on another computer

  • Thread starter Thread starter Eric Caron
  • Start date Start date
E

Eric Caron

Hi

In my Windows service i want to write in eventlog of another computer.
I see the MachineName property to set where to write log. I try this
using IP address and this work great on a computer where I have full
right access. What acces I must have on distant computer to write in
the eventlog ?

Thanks
 
You'll need permissions for two different things. First, you need to be
able to write the regkey where the source name is stored - this happens
during CreateEventSource. It also happens automatically if your source
doesn't exist when you write. I believe you need to be an admin for this.

The second thing is the actual writing to the event log. Unfortunately I
don't know what the minimum permissions for this are, but I can tell you
they will be the same as what are required for the Win32 methods
RegisterEventSource and ReportEvent.

David
 
Back
Top