tripleo-ansible/tripleo_ansible/roles/octavia_controller_post_config/templates/10-octavia.conf.j2

15 lines
630 B
Django/Jinja

module(load="imudp")
input(type="imudp" address="{{ mgmt_port_ip }}" port="514")
# Output the amphora tenant traffic flow logs
if ($inputname == "imudp" and $syslogfacility-text == "local0" and $syslogseverity-text == "info" and $hostname startswith "amphora") then {
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-tenant-traffic.log")
stop
}
# Output the amphora administrative logs
if ($inputname == "imudp" and $syslogfacility-text != "local0" and $hostname startswith "amphora") then {
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-amphora.log")
stop
}