From 6ea79e33b598ce85cc11a73d568d272439859f2b Mon Sep 17 00:00:00 2001 From: mbonsack Date: Thu, 9 Jul 2020 04:54:51 -0700 Subject: [PATCH] Update persist name for multi-HEC (#557) * Update persist name for multi-HEC * Docs will be updated in upcoming docs PR to highlight TLS verify settings for alternate HEC destinations --- package/etc/go_templates/splunk_hec.t | 2 +- tests/docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/etc/go_templates/splunk_hec.t b/package/etc/go_templates/splunk_hec.t index 104fe8e..1bef15b 100644 --- a/package/etc/go_templates/splunk_hec.t +++ b/package/etc/go_templates/splunk_hec.t @@ -14,7 +14,7 @@ destination d_hec{{ .var_id }} { user("sc4s") headers("{{- getenv (print "SC4S_DEST_SPLUNK_HEC" .var_id "_HEADERS") "Connection: close"}}") password("{{- getenv (print "SPLUNK_HEC" .var_id "_TOKEN")}}") - persist-name("splunk_hec") + persist-name("splunk_hec{{ .var_id }}") response-action(400 => drop, 404 => retry) {{- if eq (getenv (print "SC4S_DEST_SPLUNK_HEC" .var_id "_DISKBUFF_ENABLE") "yes") "yes"}} diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index 2959a84..e81255d 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -37,6 +37,8 @@ services: - SC4S_DEST_SPLUNK_SC4S_METRICS_HEC=yes - SC4S_SOURCE_TLS_ENABLE=no - SC4S_DEST_SPLUNK_HEC_TLS_VERIFY=no + - SC4S_DEST_SPLUNK_HEC_FOO_TLS_VERIFY=no + - SC4S_DEST_SPLUNK_HEC_BAR_TLS_VERIFY=no - SC4S_LISTEN_JUNIPER_NETSCREEN_TCP_PORT=5000 - SC4S_LISTEN_CISCO_ASA_TCP_PORT=5001 - SC4S_LISTEN_CISCO_IOS_TCP_PORT=5002