Skip to content

Commit

Permalink
rsyslog: use new syntax in conf
Browse files Browse the repository at this point in the history
Updated steps for forwarding of system logs to use new rsyslog syntax.
Without this, rsyslogd would report `error during parsing file /etc/rsyslog.conf`

Ref: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/deployment_guide/sec-using_the_new_syntax_for_rsyslog_queues#sec-Using_the_New_Syntax_for_rsyslog_queues

Signed-off-by: Navaneet Villodi <[email protected]>
  • Loading branch information
nauaneed authored and adrianreber committed Oct 18, 2024
1 parent 8aec291 commit d731775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/recipes/install/common/syslog.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
[sms](*\#*) systemctl restart rsyslog

# Define compute node forwarding destination
[sms](*\#*) echo "*.* @${sms_ip}:514" >> $CHROOT/etc/rsyslog.conf
[sms](*\#*) echo "Target=\"${sms_ip}\" Protocol=\"udp\"" >> $CHROOT/etc/rsyslog.conf
[sms](*\#*) echo "*.* action(type=\"omfwd\" Target=\"${sms_ip}\" Port=\"514\" "\
"Protocol=\"udp\")">> $CHROOT/etc/rsyslog.conf

# Disable most local logging on computes. Emergency and boot logs will remain on the compute nodes
[sms](*\#*) perl -pi -e "s/^\*\.info/\\#\*\.info/" $CHROOT/etc/rsyslog.conf
Expand Down

0 comments on commit d731775

Please sign in to comment.