-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-build logstash image with plugin and configuration (#1687)
Polish some things in the logstash scenario: * Pre-build logstash image: * It includes the plugin now so it doesn't need to be installed on every run, speeding up startup after first run. * It includes the configuration, so it can be modified with auto-reload, as introduced in #1668. * Use private key without converting it to PKCS8. * Use actual CA instead of elasticsearch certificate as CA in logstash output. * Startup script removed as operations moved to other places or not needed. * Use the same configuration template for serverless and compose providers.
- Loading branch information
Showing
8 changed files
with
53 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG IMAGE | ||
FROM ${IMAGE} | ||
|
||
RUN if [ ! "$(bin/logstash-plugin list)" = *logstash-filter-elastic_integration* ]; then \ | ||
echo "Missing plugin logstash-filter-elastic_integration, installing now."; \ | ||
bin/logstash-plugin install logstash-filter-elastic_integration; \ | ||
fi | ||
|
||
# Copying the file here instead of using a volume so it can be modified and reload | ||
# automatically. | ||
COPY --chown=logstash:root ./logstash.conf /usr/share/logstash/pipeline/logstash.conf | ||
|
||
CMD bin/logstash -f /usr/share/logstash/pipeline/logstash.conf --config.reload.automatic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters