Hello,
After installing asterisk package from stable repo on Debian Buster, I can observe Asterisk are both logged in /var/log/asterisk/messages and /var/log/syslog (and maybe other files)
My config is:
In /etc/rsyslog.conf:
First some standard log files. Log by facility.
auth,authpriv.* /var/log/auth.log
.;auth,authpriv.none -/var/log/syslog
#cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
In /etc/asterisk/logger.conf:
[general]
[logfiles]
console => notice,warning,error
messages => notice,warning,error
CLI > logger show channels
Logger queue limit: 1000
Channel Type Formatter Status Configuration
/var/log/asterisk/messages File default Enabled - NOTICE WARNING ERROR
Console default Enabled - NOTICE WARNING ERROR VERBOSE
-
Is it correct that the line in rsyslog.conf that triggers addition to /var/log/syslog is the one bellow
.;auth,authpriv.none -/var/log/syslog -
I think I prefer having them only logged into /var/log/asterisk/* files.
How can I configure this ?
Best regards