hi all,
I was wondering what would be the best way to run an external program from rsyslogd, so that the program's stdin would be connected to rsyslogd over a pipe.

From the rsyslogd docs, I've found the omprog module as one possible solution. For example, the following statements

$ModLoad omprog
$ActionOMProgBinary /root/test.sh
*.*     :omprog:

run /root/test.sh from rsyslogd and feed all log messages to the standard input of /root/test.sh.

My question is -- are there any other (or better) ways for achieving the same setup?

(Of course, one obvious way would be to use a named pipe for communication.)

kind regards,
risto
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to