[syslog-ng] Passing args to blocks gives error in v.3.4.1
Gergely Nagy
algernon at balabit.hu
Tue Apr 16 14:21:43 CEST 2013
Anton Koldaev <koldaevav at gmail.com> writes:
> After an upgrade from 3.3.7 to 3.4.1:
>
> ...
> block root mylogs(log()) { };
> mylogs(log(123))
> ...
>
>
> Gives:
>
> Unknown argument; context='root block mylogs', arg='log', value='123'
> Error parsing config, syntax error, unexpected LL_ERROR, expecting $end in
> /etc/syslog-ng/syslog-ng.conf at line 11, column 1:
>
> mylogs(log(123))
> ^^^^^^
>
> Am I doing anything wrong?
This should be working. The block handling was substantially modified in
3.4, and I suppose this is another way in which it broke. I have a
reasonable idea how to fix it, and will do so for 3.4.2.
--
|8]
More information about the syslog-ng
mailing list