Use the IP address as part of the filename. Sources can fake the hostname.

This commit is contained in:
Andrea Dell'Amico 2021-07-22 12:43:02 +02:00
parent 6aeb9b1e5b
commit c24d8af806
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ tls.myPrivKey="{{ rsyslog_tls_key }}"
tls="off"
{% endif %}
)
template (name="remote" type="string" string="{{ rsyslog_remote_path }}/%HOSTNAME%/%HOSTNAME%-syslog.log")
template (name="remote" type="string" string="{{ rsyslog_remote_path }}/%HOSTNAME%/%fromhost-ip%_syslog.log")
ruleset (name="relp") { action(type="omfile" DynaFile="remote") }
{% endif %}