1
answer

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!

AskedDecember 5, 2018 - 11:03am

Answer (1)

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.

AnsweredDecember 5, 2018 - 11:23am

Comments (1)

  • Pdudas's picture

    Thank you!
    Powershell cmdlet is a good idea.

    December 5, 2018 - 12:02pm