15 lines
630 B
Django/Jinja
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 == "local1" and $hostname startswith "amphora") then {
|
|
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-amphora.log")
|
|
stop
|
|
}
|