diff -up rsyslog-8.2310.0/doc/configuration/modules/omprog.html.orig rsyslog-8.2310.0/doc/configuration/modules/omprog.html --- rsyslog-8.2310.0/doc/configuration/modules/omprog.html.orig 2024-01-05 13:21:14.474252913 +0100 +++ rsyslog-8.2310.0/doc/configuration/modules/omprog.html 2024-01-05 13:25:09.128562192 +0100 @@ -144,8 +144,11 @@ passed to the external program.

-

Full path and command line parameters of the external program to execute.

-

In legacy config, it is not possible to specify command line parameters.

+

Full path and command line parameters of the external program to execute. + Arbitrary external programs should be placed under the /usr/libexec/rsyslog directory. + That is, the binaries put in this namespaced directory are meant for the consumption + of rsyslog, and are not intended to be executed by users. + In legacy config, it is not possible to specify command line parameters.

confirmMessages

@@ -587,12 +590,12 @@ multiple processes.

Example: command line arguments

In the following example, logs will be sent to a program log.sh located -in /path/to. The program will receive the command line arguments +in /usr/libexec/rsyslog. The program will receive the command line arguments p1, p2 and --param3="value 3".

module(load="omprog")
 
 action(type="omprog"
-       binary="/path/to/log.sh p1 p2 --param3=\"value 3\""
+       binary="/usr/libexec/rsyslog/log.sh p1 p2 --param3=\"value 3\""
        template="RSYSLOG_TraditionalFileFormat")
 
@@ -618,7 +621,7 @@ rsyslog will kill and restart it.

action(type="omprog" name="db_forward" - binary="/usr/share/logging/db_forward.py" + binary="/usr/libexec/rsyslog/db_forward.py" confirmMessages="on" confirmTimeout="30000" queue.type="LinkedList"