this line may be added to be default used at the end of configuration file /etc/syslog-ng/syslog-ng.conf (original header describes it as "/var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened") to log all messages to log it to 12th console (don't think it is necessary by default) and /var/log/messages file (like in several other unises). destination console_all { file("/dev/tty12"); }; destination console_all { file("/var/log/messages"); }; Reproducible: Always
I don't understand, it's already there... http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened?rev=1.5&view=markup <snip> destination console_all { file("/dev/tty12"); }; </snip>
but I think there is no definition for logging into the file /var/log/messages (second line)
sorry, missed that it is already. I thought it wasn't by default due to last update of my gentoo system.
(In reply to comment #2) > but I think there is no definition for logging into the file /var/log/messages > (second line) Eh, that's on purpose. If you want all cruft dumped into /var/log/messages instead of being sorted, then do NOT use the syslog-ng.conf.gentoo.hardened but syslog-ng.conf.gentoo instead.
Related problem: currently we have defined /dev/tty12 in 2 destinations (hardened syslog-ng.conf template): destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; destination console_all { file("/dev/tty12"); }; Syslog-ng doesn't like that: May 28 03:10:04 mac syslog-ng[1313]: Internal error, duplicate configuration elements refer to the same persistent config; name='affile_dd_writers(/dev/tty12)'
I have the same problem with the syslog.conf (hardened) # grep tty12 syslog-ng.conf destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; destination console_all { file("/dev/tty12"); }; Apr 29 11:05:37 cherne syslog-ng[3851]: Internal error, duplicate configuration elements refer to the same persistent config; name='affile_dd_writers(/dev/tty12)'
exactly the same problem here : Jul 7 03:10:02 quaoar syslog-ng[4053]: Configuration reload request received, reloading configuration; Jul 7 03:10:02 quaoar syslog-ng[4053]: Internal error, duplicate configuration elements refer to the same persistent config; name='affile_dd_writers(/dev/tty12)' Jul 7 03:10:02 quaoar syslog-ng[4053]: Configuration reload request received, reloading configuration; Jul 7 03:10:03 quaoar syslog-ng[4053]: Configuration reload request received, reloading configuration; Jul 7 03:10:03 quaoar syslog-ng[4053]: Configuration reload request received, reloading configuration; Jul 7 03:10:04 quaoar syslog-ng[4053]: Configuration reload request received, reloading configuration; Jul 7 03:10:04 quaoar syslog-ng[4053]: Configuration reload request received, reloading configuration; Jul 7 03:10:04 quaoar syslog-ng[4053]: Configuration reload request received, reloading configuration; is there a workaround ?
Created separate bug (BUG#277308) - otherwise it will never get fixed.