ansible-ops-management/templates/etc/rsyslog.d/receiver.conf.j2
2023-12-22 14:53:42 -07:00

12 lines
339 B
Django/Jinja

# Receive logs
module(load="imtcp")
input(type="imtcp" port="514")
module(load="imudp")
input(type="imudp" port="514")
$AllowedSender TCP, {{ allowed_rsyslog_clients|join(', ') }}
$template RemoteHostSyslog,"/var/log/remote/%HOSTNAME%-log
$RuleSet remote
*.* -?RemoteHostSyslog
*.info;mail.none;authpriv.none;cron.none ?RemoteHostSyslog