diff --git a/roles/rsyslog_collector/templates/20-collector.conf.j2 b/roles/rsyslog_collector/templates/20-collector.conf.j2 index a67956b..897945f 100644 --- a/roles/rsyslog_collector/templates/20-collector.conf.j2 +++ b/roles/rsyslog_collector/templates/20-collector.conf.j2 @@ -38,6 +38,7 @@ ruleset(name="handleIncomingLogs") { dynaFile="incomingFilename" template="RSYSLOG_FileFormat" ) + call sendLogsToRemote } # TODO: add protocol-specific options (eg. TLS) @@ -49,7 +50,5 @@ input( {% endif %} port="{{ input.port }}" ruleset="handleIncomingLogs" - - call sendLogsToRemote ) {% endfor %}