[syslog-ng] date-parser not found

Sandbox sandboxheh at gmail.com
Tue Jun 13 10:15:00 UTC 2017


Hi,

I would like to use the date-parser.

When i using the below parse it says "date-parser not found":

parser haproxy_date {
    date-parser(
         format("%d/%m/%Y:%H:%M:%S %z")
         template("$(substr ${MSG} 0 27)") );.
};

Plugin module not found in 'module-path';
module-path='/usr/lib/syslog-ng/3.5.6', module='date-parser'
Error parsing parser expression, parser plugin date-parser not found in
/etc/syslog-ng/conf.d/20-haproxy.conf at line 26, column 5:
                                                          included from
/etc/syslog-ng/syslog-ng.conf line 165, column 1

    date-parser(
    ^^^^^^^^^^^

It's weird, because when i try to use the date-parser module in the log
section:

log { source(s_haproxy); filter(f_haproxy_info);
date-parser(format("%d/%m/%Y:%H:%M:%S %z") template("$(substr ${MSG} 0
27)") ); destination(d_haproxy_info); };

it says:

Error parsing log, syntax error, unexpected LL_IDENTIFIER, expecting '}' in
/etc/syslog-ng/conf.d/20-haproxy.conf at line 37, column 5:
                                                              included from
/etc/syslog-ng/syslog-ng.conf line 165, column 1

    date-parser(format("%d/%m/%Y:%H:%M:%S %z") template("$(substr ${MSG} 0
27)") );
    ^^^^^^^^^^^

In OSE version the date-parser module is not available, or i'm missing
something?


Thanks, Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20170613/2be6eed4/attachment.html>


More information about the syslog-ng mailing list