Skip to content

Commit

Permalink
Merge pull request #3 from fairfaxmedia/feature/add-custom-dedot-filt…
Browse files Browse the repository at this point in the history
…er-and-kinesis-output

Add custom dedot filter and kinesis output
  • Loading branch information
mikelorant authored Feb 21, 2019
2 parents 40f362e + 2b4bbe3 commit 5895d11
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 5895d11

Please sign in to comment.