[rsyslog-notify] Forum Thread: using omprog in ruleset (RHEL6/rsyslog 5.8) - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Thu Jun 4 20:13:18 CEST 2015
User: jrussler
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25662#p25662
Message:
----------
He there,
I'm trying to use the omprog module on a Red Hat 6 system (rsyslog 5.8.10).
The following config chunk logs correctly to "/var/log/omtest" but does not
launch and pipe to echotest. No errors from rsyslog are reported.
"echotest" is a C binary that just listens to stdin and writes it to a test
file. Is it possible that omprog won't work in a non-default ruleset?
--
$ModLoad omprog
$ActionOMProgBinary /root/echotest
$template OMTestLogFormat, "%TIMESTAMP:::date-rfc3339%
%fromhost-ip%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$template OMTestLoggerDest,"/var/log/omtest.log
$RuleSet omtest
*.* ?OMTestLoggerDest;OMTestLogFormat
*.* :omprog:;OMTestLogFormat
$InputTCPServerBindRuleset omtest
$InputTCPServerRun 50514
$RuleSet RSYSLOG_DefaultRuleset
--
More information about the rsyslog-notify
mailing list