Use the IP address as part of the filename. Sources can fake the hostname.
This commit is contained in:
parent
6aeb9b1e5b
commit
c24d8af806
|
|
@ -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 %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue