Created
April 19, 2020 16:51
-
-
Save TheCloudScout/6fcf3c00791af2e552af4e54b0f38ac3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# escape=` | |
# LogStash base image from Elastic version 7.6.2 | |
FROM docker.elastic.co/logstash/logstash:7.6.2 | |
# Delete logstash.conf in custom image, so that we won't retain the example config from the base image. | |
RUN rm -f /usr/share/logstash/pipeline/logstash.conf | |
# Copy JDBC drivers for PostgreSQL connection | |
ADD postgresql-42.2.12.jar /usr/share/logstash/modules/postgres/postgresql-42.2.12.jar | |
# Install LogStash output plug-in Azure Log Analyics Workspace connection for Azure Sentinel | |
RUN /usr/share/logstash/bin/logstash-plugin install logstash-output-azure_loganalytics | |
# Copy pipeline config file | |
ADD postgres-to-sentinel.conf /usr/share/logstash/pipeline/postgres-to-sentinel.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment