tokenbridge/deployment/roles/monitor/templates/38-monitor-remote-logging.conf.j2
Przemyslaw Rzad c94b68ab5b
Monitor remote logging (#162)
* Added remote logging for monitor

* Legacy line

* Tempaltes
2019-07-26 10:51:39 +02:00

16 lines
457 B
Django/Jinja

if $programname startswith 'monitor_' then {
action(
type="omfwd"
protocol="{{ syslog_server_port.split(":")[0] }}"
target="{{ (syslog_server_port.split(":")[1])[2:] }}"
port="{{ syslog_server_port.split(":")[2] }}"
template="RemoteForwardFormat"
queue.SpoolDirectory="/var/spool/rsyslog"
queue.FileName="remote"
queue.MaxDiskSpace="1g"
queue.SaveOnShutdown="on"
queue.Type="LinkedList"
ResendLastMSGOnReconnect="on"
)
}