octavia/devstack/etc/rsyslog/10-octavia-log-offloading.conf
Michael Johnson d56b9d65c1 Fix log offload file permissions in CentOS devstack
CentOS sets a restrictive umask by default that will override the
rsyslog file permissions settings. This can cause our tempest tests
to no be able to read the log offload files in our CentOS gate jobs.
This patch clears this umask override in the devstack rsyslog
configuration.

Note: This is a global setting for rsyslog and you probably do not
      want to set this outside of a testing environment.

Change-Id: I5962e335acff79152fa49c27c883aef2879593db
2019-10-10 08:37:38 -07:00

17 lines
661 B
Plaintext

# Work around CentOS/RHEL umask override of file permissions
# Note: This is a global rsyslog setting, you probably do not want to set
# this outside of testing!
$umask 0000
# provides UDP syslog reception
module(load="imudp")
input(type="imudp" port=["%ADMIN_PORT%", "%TENANT_PORT%"])
if ($inputname == "imudp" and $syslogfacility-text == "local0" and $syslogseverity-text == "info") then {
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia-tenant-traffic.log")&stop
}
if ($inputname == "imudp" and $syslogfacility-text != "local0") then {
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia-amphora.log")&stop
}