Skip to content

Commit

Permalink
Merge pull request #532 from splunk/entrypoint/status_msg
Browse files Browse the repository at this point in the history
Update status msg with newline
  • Loading branch information
Ryan Faircloth authored and GitHub committed Jun 16, 2020
2 parents 6f83895 + 9e20c00 commit 828910d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/sbin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 828910d

Please sign in to comment.