Asterisk stop log to syslog

Issue

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

Solution:

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

# Step2:
service restart rsyslog