Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Log4j #18

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
FROM docker.elastic.co/logstash/logstash-oss:7.9.3
FROM docker.elastic.co/logstash/logstash-oss:7.9.3 as logstash

FROM alpine:3.15 as patch

COPY --from=logstash /usr/share/logstash /logstash-patch

RUN apk add zip

RUN zip -q -d /logstash-patch/logstash-core/**/*/log4j-core-2.* org/apache/logging/log4j/core/lookup/JndiLookup.class

FROM logstash

COPY --from=patch /logstash-patch /usr/share/logstash

RUN /usr/share/logstash/bin/logstash-plugin install logstash-output-amazon_es

Expand Down