Ask questions. Get answers. Find technical product solutions from passionate experts in the NXLog community.
nxlog-ce-3.0.2284 on Windows, exec_async can not running powershell or batch script...
shinee created
Hello!
I would execute an simple powershell script that only creates a folder, at every incoming ERROR message. But can not running powershell script!
My config file is as follows:
<Input 1>
Module im_tcp
host 0.0.0.0
Port 514
Exec parse_syslog();
</Input>
<Output out>
Module om_file
Module xm_exec
File "C:\\NXlogs\\Test_Log.log"
exec if $raw_event =~ /ERROR/ exec_async("C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", "-ExecutionPolicy", "Bypass", "-command", "C:\\NXlogs\\test.ps1");
</Output>
<Route >
Path 1 => out
</Route>
After running it got error message like:
2022-09-07 15:21:22 ERROR subprocess 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe' was terminated by a signal.
Even running notpad.exe or a batch script have got same error like:
ERROR subprocess ................. was terminated by a signal.
Does anyone know what is the reason?
shinee created