add searchguard

add authentication to elk with searchguard

Issue-ID: CLAMP-419

Change-Id: I66bca485750e3377db10f6f43efb7f741a42c17d
Signed-off-by: osgn422w <gervais-martial.ngueko@intl.att.com>
diff --git a/src/main/docker/logstash/pipeline/logstash.conf b/src/main/docker/logstash/pipeline/logstash.conf
index 6fe9d96..5c1d47d 100644
--- a/src/main/docker/logstash/pipeline/logstash.conf
+++ b/src/main/docker/logstash/pipeline/logstash.conf
@@ -238,6 +238,8 @@
         elasticsearch {
             codec => "json"
             hosts => ["${elasticsearch_base_url}"]
+            user => "${LOGSTASH_USR}"
+            password => "${LOGSTASH_PWD}"
             index => "errors-%{+YYYY.MM.DD}"
             doc_as_upsert => true
         }
@@ -246,6 +248,8 @@
         elasticsearch {
             codec => "json"
             hosts => ["${elasticsearch_base_url}"]
+            user => "${LOGSTASH_USR}"
+            password => "${LOGSTASH_PWD}"
             document_id => "%{requestID}"
             index => "events-cl-%{+YYYY.MM.DD}" # creates daily indexes for control loop
             doc_as_upsert => true
@@ -256,6 +260,8 @@
         elasticsearch {
             codec => "json"
             hosts => ["${elasticsearch_base_url}"]
+            user => "${LOGSTASH_USR}"
+            password => "${LOGSTASH_PWD}"
             index => "events-raw-%{+YYYY.MM.DD}" # creates daily indexes
             doc_as_upsert => true
         }