local[0-7], can't get them to write to file.
Hi All, I'm having a few minor problems writing local 6 and 7 to files. I'm most likely doing something incorrect in the config file, can some one help me out please. source src { unix-dgram("/var/run/log"); internal(); udp(ip(0.0.0.0) port(514)); }; destination local6 { file("/var/log/local6.log"); }; destination local7 { file("/var/log/local7.log"); } filter f_local6 { facility(local6); }; filter f_local7 { facility(local7); }; log { source(src); filter(f_local6); destination(local6); }; log { source(src); filter(f_local7); destination(local7); }; Cheers, John
I'm having a few minor problems writing local 6 and 7 to files. I'm most likely doing something incorrect in the config file, can some one help me out please.
source src { unix-dgram("/var/run/log"); internal(); udp(ip(0.0.0.0) port(514)); };
destination local6 { file("/var/log/local6.log"); }; destination local7 { file("/var/log/local7.log"); } ^^^^^^^^
missing semicolon.
filter f_local6 { facility(local6); }; filter f_local7 { facility(local7); };
log { source(src); filter(f_local6); destination(local6); }; log { source(src); filter(f_local7); destination(local7); };
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
destination local6 { file("/var/log/local6.log"); }; destination local7 { file("/var/log/local7.log"); }
missing semicolon.
yep, sorry, that was my dodgy cut and paste effort.
Can you see any thing else incorrect?
nope. though the name collision between local6 (as the name of the destination) and local6 as a facility name may cause problems. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
participants (2)
-
Balazs Scheidler
-
i@moe.co.uk