Skip to content

Commit

Permalink
Merge pull request #436 from jashah-splunk/master
Browse files Browse the repository at this point in the history
Changed event format to KV from JSON for Juniper
  • Loading branch information
Ryan Faircloth authored and GitHub committed May 6, 2020
2 parents c0ec0c8 + cef810f commit 7ebecd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ log {
#We want to unset the fields we won't need, as this is copied into the
#disk queue for network destinations. This can be very disk expensive
#if we don't
rewrite { set("$(template ${.splunk.sc4s_template} $(template t_JSON_5424))" value("MSG")); };
rewrite { set("$(template ${.splunk.sc4s_template} $(template t_hdr_sdata_msg))" value("MSG")); };

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

0 comments on commit 7ebecd0

Please sign in to comment.