feat: more syslog/telegraf stuff

This commit is contained in:
2023-01-11 02:20:00 +01:00
parent 88ecce43b0
commit b53c1918c9
12 changed files with 114 additions and 0 deletions

View File

@@ -90,7 +90,9 @@ mail.err /var/log/mail.err
{% if monitoring_master %}
$CreateDirs on
$template RemoteLogs,"/var/log/rsyslog/%HOSTNAME%/%PROGRAMNAME%.log"
*.* ?RemoteLogs
*.* @@(o)127.0.0.1:6514;RSYSLOG_SyslogProtocol23Format
{% else %}
*.* @@{{ RSYSLOG_SERVER }}:514
{% endif %}