Skip to content

Commit

Permalink
Update splunk_hec_debug.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Bonsack committed Mar 13, 2020
1 parent 35d66a9 commit fab5b46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package/etc/conf.d/destinations/splunk_hec_debug.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
destination d_hec_debug {
file("/opt/syslog-ng/var/archive/${.splunk.sourcetype}/${HOST}/$YEAR-$MONTH-$DAY-message.log"
file("/opt/syslog-ng/var/archive/debug/${.splunk.sourcetype}/${HOST}/$YEAR-$MONTH-$DAY-message.log"
template("curl -k -u \"sc4s HEC debug:$(env SPLUNK_HEC_TOKEN)\" \"$(env SPLUNK_HEC_URL)\" -d '$(format-json
time=$S_UNIXTIME.$S_MSEC
host=${HOST}
Expand All @@ -8,7 +8,6 @@ destination d_hec_debug {
index=${.splunk.index}
event=$MSG
fields.*)'\n")
# file("/var/log/messages_syslog"
create_dirs(yes)
);
};

0 comments on commit fab5b46

Please sign in to comment.