Skip to content

Asterisk stop log to syslog

Issue

Asterisk put logs to /var/log/syslog Affected OS: Ubuntu, Debian 9

Solution:

# Step1: create file for rsyslog
cat << EOF > /etc/rsyslog.d/10-asterisk.conf
if \$programname == "asterisk" then { stop }
EOF
# Step2:
systemctl restart rsyslog.service