From 300a704bd729b650acbed44254eb3ab289617ee9 Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Sun, 14 Jun 2020 10:42:52 -0400 Subject: [PATCH] Update entrypoint.sh --- package/sbin/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/sbin/entrypoint.sh b/package/sbin/entrypoint.sh index d554d3b..5abcde2 100755 --- a/package/sbin/entrypoint.sh +++ b/package/sbin/entrypoint.sh @@ -50,6 +50,9 @@ INDEX=$(cat /opt/syslog-ng/etc/conf.d/local/config/splunk_index.csv | grep sc4s if ! curl -k "${HEC}" -H "Authorization: Splunk ${SPLUNK_HEC_TOKEN}" -d '{"event": "HEC TEST EVENT", "sourcetype": "SC4S:PROBE", "index":"${index}"}' then echo SC4S_ENV_CHECK_HEC: Splunk unreachable startup will continue to prevent data loss if this is a transient failure +else + echo SC4S_ENV_CHECK_HEC: Splunk connection succesfull + fi #Setup SNMPD