Question

What permissions do I need to give a User for them to be able to write to the Windows EventLog? I have an ASP.NET application that needs to impersonate a user and that impersonated user must be able to write the event log

Was it helpful?

Solution

To create an Event Log source you need to be an administrator, otherwise you should be able to write to it without elevated privileges.

Maybe take a look at this article.

OTHER TIPS

The MSDN docs on Event Logging (Win32) do not mention any required privileges.

Regardless, I'm not sure I understand why you need to write to the log using the impersonation token. You can still impersonate, but also write to the log with a different (admin) account, if that's necessary.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top