Skip to content

Commit

Permalink
Update splunkfields.conf.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Jun 15, 2020
1 parent 3f8e58f commit bbc5201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/etc/conf.d/conflib/_splunk/splunkfields.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ rewrite r_set_splunk_default {
#overridden by user defined values
block rewrite r_set_splunk_dest_default(
#While the following is not used it remains to prevent breaking changes in content
index('')
index('{{- getenv "SC4S_DEST_SPLUNK_HEC_FALLBACK_INDEX" }}')
source("${.splunk.source}")
sourcetype()
template(`splunk-template`)
) {
set("{{- getenv "SC4S_DEST_SPLUNK_HEC_FALLBACK_INDEX" }}", value(".splunk.index"));
set("`index`", value(".splunk.index"));
set("`source`", value(".splunk.source"));
set("`sourcetype`", value(".splunk.sourcetype"));
};
Expand Down

0 comments on commit bbc5201

Please sign in to comment.