Skip to content

Commit

Permalink
Merge pull request #359 from splunk/update/internal_log_path
Browse files Browse the repository at this point in the history
Update internal log path for alt dest
  • Loading branch information
Ryan Faircloth authored and GitHub committed Mar 13, 2020
2 parents 26db01c + 1519927 commit 45a8dcc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package/etc/conf.d/log_paths/lp-sc4s_internal.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ log {
destination(d_hecmetrics);
{{- end}}

{{- if eq (getenv "SC4S_DEBUG_STDOUT" "yes") "yes"}}
destination(d_stdout);
{{- end}}

{{- if (print (getenv "SC4S_DEST_GLOBAL_ALTERNATES")) }}
{{ getenv "SC4S_DEST_GLOBAL_ALTERNATES" | regexp.ReplaceLiteral "^" "destination(" | regexp.ReplaceLiteral "[, ]+" ");\n destination(" }});
{{- end }}

{{- if (print (getenv "SC4S_DEST_INTERNAL_EVENTS_ALTERNATES")) }}
{{ getenv "SC4S_DEST_INTERNAL_EVENTS_ALTERNATES" | regexp.ReplaceLiteral "^" "destination(" | regexp.ReplaceLiteral "[, ]+" ");\n destination(" }});
{{- end }}

} else {

rewrite { r_set_splunk_dest_default(sourcetype("sc4s:events"), index("main"))};
Expand Down

0 comments on commit 45a8dcc

Please sign in to comment.