Skip to content

Commit

Permalink
Set persist name and worker counts in Internal and Metrics destinations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth authored and GitHub committed Oct 10, 2019
1 parent d510239 commit 01f9fb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package/etc/conf.d/destinations/splunk_hec.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ destination d_hec {
user("sc4s")
headers("{{- getenv "SC4S_DEST_SPLUNK_DEST_SPLUNK_HEC_HEADERS" "Connection: close"}}")
password("{{- getenv "SPLUNK_HEC_TOKEN"}}")

{{- if eq (getenv "SC4S_DEST_SPLUNK_HEC_DISKBUFF_ENABLE" "yes") "yes"}}
persist-name("splunk_hec")
{{- if eq (getenv "SC4S_DEST_SPLUNK_HEC_DISKBUFF_ENABLE" "yes") "yes"}}

disk-buffer(

{{- if eq (getenv "SC4S_DEST_SPLUNK_HEC_DISKBUFF_RELIABLE" "no") "yes"}}
Expand Down
4 changes: 2 additions & 2 deletions package/etc/conf.d/destinations/splunk_hec_internal.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ destination d_hec_internal {
url("{{- getenv "SPLUNK_HEC_URL"}}")
method("POST")
log-fifo-size({{- getenv "SC4S_DEST_SPLUNK_HEC_LOG_FIFO_SIZE" "180000000"}})
workers(1)
workers(10)
batch-lines({{- getenv "SC4S_DEST_SPLUNK_HEC_BATCH_LINES" "1000"}})
batch-bytes({{- getenv "SC4S_DEST_SPLUNK_HEC_BATCH_BYTES" "4096kb"}})
batch-timeout({{- getenv "SC4S_DEST_SPLUNK_HEC_BATCH_TIMEOUT" "1"}})
Expand All @@ -12,7 +12,7 @@ destination d_hec_internal {
user("sc4s")
headers("{{- getenv "SC4S_DEST_SPLUNK_DEST_SPLUNK_HEC_HEADERS" "Connection: close"}}")
password("{{- getenv "SPLUNK_HEC_TOKEN"}}")

persist-name("splunk_hec_internal")

tls(peer-verify({{- getenv "SC4S_DEST_SPLUNK_HEC_TLS_VERIFY" "yes"}})
{{- if ne (getenv "SC4S_DEST_SPLUNK_HEC_CIPHER_SUITE") ""}}
Expand Down
3 changes: 2 additions & 1 deletion package/etc/conf.d/destinations/splunk_hec_metrics.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ destination d_hecmetrics {
batch-lines(50)
batch-bytes(1024Kb)
batch-timeout(1)
workers(10)
timeout(15)
user_agent("sc4s/1.0 (internal metrics)")
user("sc4s")
headers("{{- getenv "SC4S_DEST_SPLUNK_HEC_HEADERS" "Connection: close"}}")
password("{{- getenv "SPLUNK_HEC_TOKEN"}}")
persist-name("splunk_metrics")
persist-name("splunk_hec_metrics")

tls(peer-verify({{- getenv "SC4S_DEST_SPLUNK_HEC_TLS_VERIFY" "yes"}})
{{- if ne (getenv "SC4S_DEST_SPLUNK_HEC_CIPHER_SUITE") ""}}
Expand Down

0 comments on commit 01f9fb4

Please sign in to comment.