Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheCloudScout/6fcf3c00791af2e552af4e54b0f38ac3 to your computer and use it in GitHub Desktop.
Save TheCloudScout/6fcf3c00791af2e552af4e54b0f38ac3 to your computer and use it in GitHub Desktop.
# 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