File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
set -eux
10
10
11
+ LOGSTASH_VERSION=8.14.1
12
+
11
13
docker run --rm -it \
12
14
--volume " $( pwd) " /postfix.grok:/etc/logstash/patterns.d/postfix.grok \
13
15
--volume " $( pwd) " /50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf \
14
- logstash:8.14.1 \
16
+ logstash:" $LOGSTASH_VERSION " \
15
17
logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf
Original file line number Diff line number Diff line change 9
9
10
10
set -eux
11
11
12
+ LOGSTASH_VERSION=8.14.1
13
+
12
14
INPUT=$( mktemp tmp.logstash.in.XXXXX)
13
15
OUTPUT=$( mktemp tmp.logstash.out.XXXXX)
14
16
PIPELINE=$( mktemp tmp.logstash.pipeline.XXXXX)
@@ -49,7 +51,7 @@ CONTAINER_ID=$(docker run --rm --detach \
49
51
--volume ./" ${OUTPUT} " :/tmp/logstash.out \
50
52
--volume ./postfix.grok:/etc/logstash/patterns.d/postfix.grok \
51
53
--volume ./" ${PIPELINE} " :/usr/share/logstash/pipeline/pipeline.conf \
52
- logstash:8.12.0 \
54
+ logstash:" $LOGSTASH_VERSION " \
53
55
logstash -f /usr/share/logstash/pipeline/pipeline.conf)
54
56
55
57
printf " Waiting for output from logstash "
You can’t perform that action at this time.
0 commit comments