Skip to content

Commit

Permalink
Startup log path splunk_indexes.conf fix
Browse files Browse the repository at this point in the history
* Fix sourcetype/key reversal in startup log path
  • Loading branch information
Mark Bonsack committed Mar 11, 2020
1 parent 6fdbeb0 commit 4da7ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/etc/conf.d/log_paths/lp-sc4s_startup.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
log {
source(s_startup_out);

rewrite { r_set_splunk_dest_default(sourcetype("sc4s:events"), index("main"))};
parser {p_add_context_splunk(key("sc4s_events:startup:out")); };
rewrite { r_set_splunk_dest_default(sourcetype("sc4s_events:startup:out"), index("main"))};
parser {p_add_context_splunk(key("sc4s:events")); };

{{- if or (conv.ToBool (getenv "SC4S_DEST_SPLUNK_HEC_GLOBAL" "yes")) (conv.ToBool (getenv "SC4S_DEST_INTERNAL_EVENTS_HEC" "no")) }}
destination(d_hec_internal);
Expand Down

0 comments on commit 4da7ae8

Please sign in to comment.