File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ RUN CONF_DIR=/etc/elasticsearch gosu elasticsearch bin/elasticsearch-plugin \
9
9
WORKDIR ${LOGSTASH_HOME}
10
10
RUN gosu logstash bin/logstash-plugin install logstash-codec-netflow
11
11
12
- ADD logstash-30-netflow.conf /etc/logstash/conf.d/30-netflow.conf
12
+ # ADD logstash-30-netflow.conf /etc/logstash/conf.d/30-netflow.conf
13
13
ADD elk-post-hooks.sh /usr/local/bin/elk-post-hooks.sh
Original file line number Diff line number Diff line change 5
5
- " 9200:9200"
6
6
- " 5044:5044"
7
7
- " 9995:9995/udp"
8
+ environment :
9
+ - KIBANA_CONNECT_RETRY=120
Original file line number Diff line number Diff line change @@ -9,5 +9,12 @@ echo "Running first-run setup hooks"
9
9
touch /setup_complete
10
10
11
11
cd /opt/logstash
12
- bin/logstash --modules netflow --setup
12
+ service logstash stop
13
+
14
+ re_is_numeric=' ^[0-9]+$'
15
+ if ! [[ $NETFLOW_PORT =~ $re_is_numeric ]] ; then
16
+ NETFLOW_PORT=9995
17
+ fi
18
+ bin/logstash --modules netflow --setup -M netflow.var.input.udp.port=$NETFLOW_PORT
19
+
13
20
echo " Netflow module setup complete"
You can’t perform that action at this time.
0 commit comments