From 9e20c008559e1c7d342a95cca66585728ff5a203 Mon Sep 17 00:00:00 2001 From: Mark Bonsack Date: Tue, 16 Jun 2020 11:57:20 -0700 Subject: [PATCH] Update status msg with newline * Update status message with newline to get around lack of one from prior curl command * Correct spelling --- package/sbin/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/sbin/entrypoint.sh b/package/sbin/entrypoint.sh index 45ceb8a..dab0399 100755 --- a/package/sbin/entrypoint.sh +++ b/package/sbin/entrypoint.sh @@ -66,7 +66,7 @@ then then echo "SC4S_ENV_CHECK_HEC: Splunk HEC endpoint is unreachable; startup will continue to prevent data loss if this is a transient failure" else - echo "SC4S_ENV_CHECK_INDEX: Splunk HEC connection successfull; checking indexes" + echo -e "\nSC4S_ENV_CHECK_INDEX: Splunk HEC connection successful; checking indexes" cat /opt/syslog-ng/etc/conf.d/local/context/splunk_metadata.csv | grep -v sc4s_metrics | grep ',index,' | cut -d, -f 3 | sort -u | while read index ; do export index; echo -e "\nSC4S_ENV_CHECK_INDEX: Checking $index" $(curl -s -S -k "${HEC}?index=${index}" -H "Authorization: Splunk ${SPLUNK_HEC_TOKEN}" -d '{"event": "HEC TEST EVENT", "sourcetype": "SC4S:PROBE"}') ; done fi fi