Hi,

Have installed nxlog and I would like to call an external script and pass
the contents of £raw_event as JSON to the script. nxlog is installed on a
Windows Server and so powershell is my tool of choice.

How can I call powershell and the relevant .ps1 script file and pass the
$raw_event as JSON to the .ps1 file. I am trying this, without any luck.

Exec  exec_async("c:/windows/system32/windowspowershell/v1.0/powershell.exe",
"C:/location_of_script/script.ps1", $raw_event );

This is being called in the output section and I have declared the
extension exec module with xm_exec.

Any help would be great.

Thanks,

Amit
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to