Skip to content

Commit

Permalink
Update persist name for multi-HEC (#557)
Browse files Browse the repository at this point in the history
* Update persist name for multi-HEC
* Docs will be updated in upcoming docs PR to highlight TLS verify settings for alternate HEC destinations
  • Loading branch information
mbonsack authored and GitHub committed Jul 9, 2020
1 parent 50f01ea commit 6ea79e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/etc/go_templates/splunk_hec.t
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}
Expand Down
2 changes: 2 additions & 0 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ea79e3

Please sign in to comment.