File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 88
99set -eux
1010
11+ LOGSTASH_VERSION=8.14.1
12+
1113docker run --rm -it \
1214 --volume " $( pwd) " /postfix.grok:/etc/logstash/patterns.d/postfix.grok \
1315 --volume " $( pwd) " /50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf \
14- logstash:8.14.1 \
16+ logstash:" $LOGSTASH_VERSION " \
1517 logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf
Original file line number Diff line number Diff line change 99
1010set -eux
1111
12+ LOGSTASH_VERSION=8.14.1
13+
1214INPUT=$( mktemp tmp.logstash.in.XXXXX)
1315OUTPUT=$( mktemp tmp.logstash.out.XXXXX)
1416PIPELINE=$( mktemp tmp.logstash.pipeline.XXXXX)
@@ -49,7 +51,7 @@ CONTAINER_ID=$(docker run --rm --detach \
4951 --volume ./" ${OUTPUT} " :/tmp/logstash.out \
5052 --volume ./postfix.grok:/etc/logstash/patterns.d/postfix.grok \
5153 --volume ./" ${PIPELINE} " :/usr/share/logstash/pipeline/pipeline.conf \
52- logstash:8.12.0 \
54+ logstash:" $LOGSTASH_VERSION " \
5355 logstash -f /usr/share/logstash/pipeline/pipeline.conf)
5456
5557printf " Waiting for output from logstash "
You can’t perform that action at this time.
0 commit comments