问题
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
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/1028883/windows-eventlog-permissions