Hello, I try the version 2.0.1. So far I used the version 2.0.0rc3 with following config example: --------- destination console { file("/dev/tty10" group(tty) perm(0620)); }; log { source(src); filter(f_console); destination(console); }; destination xconsole { pipe("/dev/xconsole" group(tty) perm(0400)); }; log { source(src); filter(f_console); destination(xconsole); }; --------- The version 2.0.1 (and 2.0.0) says 'syntax error at ...' If I delete the options from file and pipe, then work syslog ng. see here: --------- destination console { file("/dev/tty10"); }; log { source(src); filter(f_console); destination(console); }; destination xconsole { pipe("/dev/xconsole"); }; log { source(src); filter(f_console); destination(xconsole); }; --------- In the reference manual are however permitted the option. Thanks for your help, Matthias
Hi, you have an error because syslog-ng 2.0.0 and 2.0.1 can't convert user/group name to user/group ID. But when you specify, eg. group(10) it will start correctly (if GID 10 = tty). I wrote about this between 2006-11-26 and 2006-11-28 in thread: "Config parse error in syslog-ng 2.0.0". It still hasn't been fixed. Jack On 2007-01-05 15:35, Matthias Kerk wrote:
Hello,
I try the version 2.0.1.
So far I used the version 2.0.0rc3 with following config example:
--------- destination console { file("/dev/tty10" group(tty) perm(0620)); }; log { source(src); filter(f_console); destination(console); };
destination xconsole { pipe("/dev/xconsole" group(tty) perm(0400)); }; log { source(src); filter(f_console); destination(xconsole); }; ---------
The version 2.0.1 (and 2.0.0) says 'syntax error at ...' If I delete the options from file and pipe, then work syslog ng. see here: --------- destination console { file("/dev/tty10"); }; log { source(src); filter(f_console); destination(console); };
destination xconsole { pipe("/dev/xconsole"); }; log { source(src); filter(f_console); destination(xconsole); }; ---------
In the reference manual are however permitted the option.
Thanks for your help, Matthias
On Fri, 2007-01-05 at 20:03 +0100, Jacek Kalinski wrote:
Hi,
you have an error because syslog-ng 2.0.0 and 2.0.1 can't convert user/group name to user/group ID. But when you specify, eg. group(10) it will start correctly (if GID 10 = tty).
I wrote about this between 2006-11-26 and 2006-11-28 in thread: "Config parse error in syslog-ng 2.0.0". It still hasn't been fixed.
I fixed this problem already, only my fix was not complete. If you enclose the group in quotes (e.g. "tty") it'd work. The patch below fixes this minor issue as well: --- orig/src/cfg-grammar.y +++ mod/src/cfg-grammar.y @@ -884,7 +884,7 @@ string ; string_or_number - : STRING { $$ = $1; } + : string { $$ = $1; } | NUMBER { char buf[16]; snprintf(buf, sizeof(buf), "%d", $1); $$ = strdup(buf); } %% -- Bazsi
Quoting Balazs Scheidler <bazsi@balabit.hu>:
On Fri, 2007-01-05 at 20:03 +0100, Jacek Kalinski wrote:
I fixed this problem already, only my fix was not complete.
If you enclose the group in quotes (e.g. "tty") it'd work.
-- Bazsi
Thank you. It's work fine. Without patch, but with double quote and with patch and without double quote best regards, Matthias
participants (3)
-
Balazs Scheidler
-
Jacek Kalinski
-
Matthias Kerk