From eae95531b7b262cd59e9ecd8947079eaae5163d6 Mon Sep 17 00:00:00 2001 From: Nick Muerdter Date: Sun, 25 Jun 2017 20:41:20 -0600 Subject: [PATCH] Add support for Elasticsearch authentication. --- templates/etc/rsyslog.conf.mustache | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/etc/rsyslog.conf.mustache b/templates/etc/rsyslog.conf.mustache index 54b91c24a..03baa2faf 100644 --- a/templates/etc/rsyslog.conf.mustache +++ b/templates/etc/rsyslog.conf.mustache @@ -168,6 +168,12 @@ local0.info action( type="omelasticsearch" server="{{elasticsearch._first_server.host}}" serverport="{{elasticsearch._first_server.port}}" + {{#elasticsearch._first_server.user}} + uid="{{elasticsearch._first_server.user}}" + {{/elasticsearch._first_server.user}} + {{#elasticsearch._first_server.password}} + pwd="{{elasticsearch._first_server.password}}" + {{/elasticsearch._first_server.password}} searchIndex="elasticsearch-index" dynSearchIndex="on" searchType="log"