Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 6cdc099

Browse files
author
Chris Wiechmann
committed
[skip ci] Small corrections
1 parent 9753301 commit 6cdc099

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

filebeat/docker-compose.filebeat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
command: --strict.perms=false
1111
environment:
1212
- LOGSTASH_HOSTS=${LOGSTASH_HOSTS}
13+
- LOGSTASH=${LOGSTASH:""} # Deprecated, will be removed in a future release
1314
- ELASTICSEARCH_HOSTS=${ELASTICSEARCH_HOSTS}
1415
- ELASTICSEARCH_CLUSTER_UUID=${ELASTICSEARCH_CLUSTER_UUID}
1516
- ELASTICSEARCH_CRT=${ELASTICSEARCH_CRT}

filebeat/scripts/custom-entrypoint.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# as is it required by Filebeat.
55

66
if [ -z "${LOGSTASH_HOSTS}" ];then
7-
if [ -z "${LOGSTASH}" ]; then
8-
echo "Parameter: LOGSTASH_HOSTS is missing";
9-
exit 99;
10-
else
11-
echo "Parameter LOGSTASH is deprecated. Please migrate your configuration to parameter: LOGSTASH_HOSTS";
12-
LOGSTASH_HOSTS=${LOGSTASH}
13-
fi
7+
if [ -z "${LOGSTASH}" ]; then
8+
echo "Parameter: LOGSTASH_HOSTS is missing";
9+
exit 99;
10+
else
11+
echo "Parameter LOGSTASH is deprecated. Please migrate your configuration (.env file) to parameter: LOGSTASH_HOSTS";
12+
LOGSTASH_HOSTS=${LOGSTASH}
13+
fi
1414
fi
1515

1616
hostsForFilebeat=`echo ${LOGSTASH_HOSTS} | awk '{split($0, va, /,/); vl=""; for (v in va) { if (vl =="" ) vl = sprintf("\"%s\"", va[v]); else vl = vl sprintf(",\"%s\"", va[v]); } printf("'[%s]'", vl) }'`

0 commit comments

Comments
 (0)