2020-07-18 15:27:35 +02:00
|
|
|
{% if rsyslog_enable_remote_socket %}
|
|
|
|
#
|
|
|
|
# The order counts
|
|
|
|
#
|
|
|
|
{% if rsyslog_tls_status != 'disabled ' %}
|
|
|
|
module(load="imuxsock")
|
|
|
|
module(load="imrelp" ruleset="relp")
|
|
|
|
input(type="imrelp" port="{{ rsyslog_relp_port }}"
|
|
|
|
tls="on"
|
|
|
|
tls.caCert="{{ rsyslog_tls_ca }}"
|
|
|
|
tls.myCert="{{ rsyslog_tls_cert }}"
|
|
|
|
tls.myPrivKey="{{ rsyslog_tls_key }}"
|
|
|
|
#tls.authMode="name"
|
2020-07-18 17:37:41 +02:00
|
|
|
#tls.permittedpeer=["client1","client2","client3"] )
|
|
|
|
)
|
2020-07-18 15:27:35 +02:00
|
|
|
template (name="remote" type="string" string="{{ rsyslog_remote_path }}/%HOSTNAME%/%HOSTNAME%-syslog.log")
|
|
|
|
ruleset (name="relp") { action(type="omfile" Template="remote") }
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if rsyslog_enable_remote_udp == 'enabled' %}
|
|
|
|
# Provides UDP syslog reception
|
|
|
|
module(load="imudp")
|
|
|
|
input(type="imudp" port="{{ rsyslog_udp_port }}")
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if rsyslog_enable_remote_tcp == 'enabled' %}
|
|
|
|
module(load="imtcp")
|
|
|
|
input(type="imtcp" port="{{ rsyslog_tcp_port }}")
|
|
|
|
{% endif %}
|
|
|
|
module(load="impstats")
|
|
|
|
#
|
|
|
|
{% endif %}
|