Fix rsyslog facility config for Octavia amphora-agent

When enabling the OctaviaForwardAllLogs option, the amphora-agent
forwards all the logs to the rsyslog container. So rsyslog should accept
every incoming messages from the amphora and record them in
octavia-amphora.log (this configuration is similar to the rsyslog
configuration in the Octavia devstack plugin).

Change-Id: I63d64ebe7ea2f4cd8eeb09f256870dfd2e4c1e92
Closes-Bug: #1906414
This commit is contained in:
Gregory Thiemonge 2020-12-01 16:24:56 +01:00
parent d5c0d17a58
commit 8b27b288db

View File

@ -8,7 +8,7 @@ if ($inputname == "imudp" and $syslogfacility-text == "local0" and $syslogseveri
} }
# Output the amphora administrative logs # Output the amphora administrative logs
if ($inputname == "imudp" and $syslogfacility-text == "local1" and $hostname startswith "amphora") then { if ($inputname == "imudp" and $syslogfacility-text != "local0" and $hostname startswith "amphora") then {
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-amphora.log") action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-amphora.log")
stop stop
} }