Can you run a powershell command within nxlog?

Tags:

#1 keefbaker

Hi guys, because the event log doesn't subscribe to debug logs and because I have an app that mangles it's entries I was wondering if you can run a powershell command encapsulated in an if.

eg:

if $SourceName == "IHateThisApp" \

{ \

$Message = *encapsulated powershell command* ;  }

Of if someone know a way to get the debug info out and parsed into nxlog.

#2 adm Nxlog ✓ (Last updated )
#1 keefbaker
Hi guys, because the event log doesn't subscribe to debug logs and because I have an app that mangles it's entries I was wondering if you can run a powershell command encapsulated in an if. eg: if $SourceName == "IHateThisApp" \ { \ $Message = *encapsulated powershell command* ;  } Of if someone know a way to get the debug info out and parsed into nxlog.

Have you tried to enable analytic and debug logs?

Otherwise there is an im_exec module and also an exec() procedure call but these don't work exactly the same way you wrote.