Skip to content

Commit

Permalink
Add Elastic integration folder
Browse files Browse the repository at this point in the history
Draft
  • Loading branch information
AlexRuiz7 committed Jun 4, 2024
1 parent 4dbbf22 commit 3ecd8f7
Show file tree
Hide file tree
Showing 5 changed files with 2,106 additions and 1 deletion.
1 change: 0 additions & 1 deletion integrations/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
elastic
opensearch
splunk
common
Expand Down
19 changes: 19 additions & 0 deletions integrations/elastic/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM opensearchproject/logstash-oss-with-opensearch-output-plugin:latest

ENV LOGSTASH_KEYSTORE_PASS "SecretPassword"
ENV LS_PATH "/usr/share/logstash"
USER logstash

# https://github.com/elastic/logstash/issues/6600
# Install plugin
RUN LS_JAVA_OPTS="-Xms1024m -Xmx1024m" logstash-plugin install logstash-input-opensearch

COPY --chown=logstash:logstash logstash/pipeline /usr/share/logstash/pipeline
# Copy and run the setup.sh script to create and configure a keystore for Logstash.
COPY --chown=logstash:logstash logstash/setup.sh /usr/share/logstash/bin/setup.sh
RUN bash /usr/share/logstash/bin/setup.sh

# Disable ECS compatibility
RUN `echo "pipeline.ecs_compatibility: disabled" >> /usr/share/logstash/config/logstash.yml`

WORKDIR /usr/share/logstash
Loading

0 comments on commit 3ecd8f7

Please sign in to comment.