From 674582d08c0b32542b366ca0c46cc03352845ece Mon Sep 17 00:00:00 2001 From: njuguna-n <141340177+njuguna-n@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:30:29 +0300 Subject: [PATCH] feat: update logstash base image version and update default configuration files (#61) --- logstash/Dockerfile | 2 +- logstash/pipeline/couchdb_sentinel.conf | 34 ------------------- .../pipeline/{couchdb.conf => medic.conf} | 4 +-- 3 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 logstash/pipeline/couchdb_sentinel.conf rename logstash/pipeline/{couchdb.conf => medic.conf} (89%) diff --git a/logstash/Dockerfile b/logstash/Dockerfile index 42ae5ab..7ab888d 100644 --- a/logstash/Dockerfile +++ b/logstash/Dockerfile @@ -1,4 +1,4 @@ -FROM logstash:7.14.1 +FROM logstash:8.11.1 COPY ./pipeline /usr/share/logstash/pipeline COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh diff --git a/logstash/pipeline/couchdb_sentinel.conf b/logstash/pipeline/couchdb_sentinel.conf deleted file mode 100644 index 0a24be0..0000000 --- a/logstash/pipeline/couchdb_sentinel.conf +++ /dev/null @@ -1,34 +0,0 @@ - -input { - couchdb_changes { - always_reconnect => true - db => "couchdb_sentinel" - host => "${COUCHDB_HOST}" - username => "${COUCHDB_USER}" - password => "${COUCHDB_PASSWORD}" - keep_id => true - keep_revision => true - secure => "${COUCHDB_SECURE}" - port => "${COUCHDB_PORT}" - sequence_path => "${COUCHDB_SEQ}" - } -} - -filter { - json{ - source => "message" - } - mutate { - add_field => { "_id" => "%{[doc][_id]}" } - add_field => { "_rev" => "%{[doc][_rev]}" } - } -} - -output { - http { - format => "json" - http_method => "post" - ignorable_codes => 409 - url => "http://${HTTP_ENDPOINT}/couchdb_sentinel" - } -} diff --git a/logstash/pipeline/couchdb.conf b/logstash/pipeline/medic.conf similarity index 89% rename from logstash/pipeline/couchdb.conf rename to logstash/pipeline/medic.conf index 5e780f2..8a6000e 100644 --- a/logstash/pipeline/couchdb.conf +++ b/logstash/pipeline/medic.conf @@ -2,7 +2,7 @@ input { couchdb_changes { always_reconnect => true - db => "couchdb" + db => "medic" host => "${COUCHDB_HOST}" username => "${COUCHDB_USER}" password => "${COUCHDB_PASSWORD}" @@ -29,6 +29,6 @@ output { format => "json" http_method => "post" ignorable_codes => 409 - url => "http://${HTTP_ENDPOINT}/couchdb" + url => "http://${HTTP_ENDPOINT}/medic" } }