[syslog-ng] Program() in destination driver not working for Macros defined in CSV-PARSER

Justin B justinkala at gmail.com
Tue Mar 4 19:21:31 CET 2014


Hello

On 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 the

 destination 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140304/7bb955fb/attachment.htm 


More information about the syslog-ng mailing list