diff --git a/misc/rsyslog/rsyslog.conf b/misc/rsyslog/rsyslog.conf index e2ddd9f7..0b29e510 100644 --- a/misc/rsyslog/rsyslog.conf +++ b/misc/rsyslog/rsyslog.conf @@ -23,7 +23,7 @@ $WorkDirectory /var/lib/rsyslog # Added for chef logfiles $template Chef_log,"/var/log/cobbler/anamon/%hostname%/chef-client.log" $template Raw, "%rawmsg%" - +$template Openstack_log, "/var/log/cobbler/anamon/%hostname%/%programname%.log" #### GLOBAL DIRECTIVES #### # Use default timestamp format @@ -75,6 +75,8 @@ local7.* /var/log/boot.log local3.* -?Chef_log +if $syslogfacility-text == 'local4' then -?Openstack_log + # ### begin forwarding rule ### # The statement between the begin ... end define a SINGLE forwarding # rule. They belong together, do NOT split them. If you create multiple