Generate Windows Event log entry at NXLOG start/stop
Hi,
is it possible to generate event log entries to Windows Event Log at the start/stop of Nxlog? At the moment start/stop events are in nxlog.log - for safety reasons it would make sense to add entries to Windows Event log if possible.
Thank you!
Hi,
is it possible to generate event log entries to Windows Event Log at the start/stop of Nxlog? At the moment start/stop events are in nxlog.log - for safety reasons it would make sense to add entries to Windows Event log if possible.
Thank you!
Currently it can be only logged into nxlog.log
and via im_internal
. There is no built-in support to write into the windows eventlog (i.e. there is no output equivalent for im_msvistalog
), though this is on the roadmap.
You could do this with om_exec
though by setting up a route with im_internal => om_exec
and have om_exec
invoke a script that writes into the eventlog. eventcreate or the Write-Eventlog powershell cmdlet can do this.