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" } }