Skip to content

Commit

Permalink
Changed pre-start script to create the DLQ dir
Browse files Browse the repository at this point in the history
If the folder defined in the DLQ path does not exist, logstash will fail
to start.

We need to create it in the pre-start script to avoid having this issue.
  • Loading branch information
antoniocascais committed Jan 31, 2019
1 parent 35c49b0 commit 268c367
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobs/logstash/templates/bin/pre-start
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ mkdir -p "$CONFD_DIR" && chmod 775 "$CONFD_DIR" && chown vcap.vcap "$CONFD_DIR"
cd "${CONFD_DIR}"
source /var/vcap/jobs/logstash/config/confd.sh

# setup dead letter queues folder
export DLQ_DIR="/var/vcap/store/logstash/plugins/inputs/dead_letter_queue"
mkdir -p "$DLQ_DIR"
chown vcap.vcap "$DLQ_DIR"

# Install plugins
<% p("logstash.plugins").each do |plugin| %>
logstash-plugin install \
Expand Down

0 comments on commit 268c367

Please sign in to comment.