What do you get in your script? Empty fields?
The program destination has to be on a direct log path subsequent to the parser.
HelloOn My Apache logs I applied csv_parser() and defined the Macros.parser p_apache {
csv-parser(columns("apache.ETSTAMP", "apache.TYPE", "apache.EHOSTNAME","apache.ESOURCE", "apache.EOUTCOME", "apache.EMSG","apache.EUSERID")
delimiters("|") );
};I want to launch a script whenever the UDP messages are in.So I defined thedestination d_mesg (program("/tmp/test.sh" template("|${apache.ETSTAMP}|${apache.TYPE}|${apache.EHOSTNAME}|${apache.ESOURCE}|${apache.EOUTCOME}|${apache.EMSG}|${apache.EUSERID}\n")); };script is working fine with other destination drivers. Please help
--
Kale
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq