From 2b4bbe343d9b1d53626a5da9056814b974062281 Mon Sep 17 00:00:00 2001 From: Michael Lorant Date: Tue, 5 Feb 2019 15:25:58 +1100 Subject: [PATCH] Add kinesis output. Add custom de_dot filter with recursive support. --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index 04c8723..35d2e06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,18 @@ FROM docker.elastic.co/logstash/logstash:6.5.1 +RUN sed -i '/source/a source "https://repo.fury.io/fairfaxblue/"' Gemfile + # This command takes 2-5 minutes due to Maven downloading and building. RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-prune RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-json_encode RUN /usr/share/logstash/bin/logstash-plugin install logstash-input-kinesis +RUN /usr/share/logstash/bin/logstash-plugin install logstash-output-kinesis +# RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-de_dot +# Above command does not work due to gem not being considered a valid logstash plugin. +# The specification metadata is empty when installing from a remote source however when install locally works correctly. +RUN curl -L -o /tmp/logstash-filter-de_dot.gem https://gemfury.com/fairfaxblue/ruby:logstash-filter-de_dot/-/download && \ + /usr/share/logstash/bin/logstash-plugin install /tmp/logstash-filter-de_dot.gem && \ + rm /tmp/logstash-filter-de_dot.gem RUN sed -i 's|^\(-Xm.1g\)$|#\ \1|' config/jvm.options