Skip to content

Commit

Permalink
Merge pull request #421 from splunk/destination/refine_rawmsg
Browse files Browse the repository at this point in the history
Refine rawmsg destination
  • Loading branch information
Ryan Faircloth authored and GitHub committed May 4, 2020
2 parents 3520f2c + 295c7ab commit aaa5d08
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions package/etc/conf.d/destinations/rawmsg_file.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
destination d_rawmsg {
file("/opt/syslog-ng/var/archive/rawmsg/${.splunk.sourcetype}/${HOST}/$YEAR-$MONTH-$DAY-message.log"
template("${RAWMSG}\n")
);
};
channel {
if ("${RAWMSG}" ne "") {
destination {
file("/opt/syslog-ng/var/archive/rawmsg/${.splunk.sourcetype}/${HOST}/$YEAR-$MONTH-$DAY-message.log"
template("${RAWMSG}\n")
);
};
};
};
};

0 comments on commit aaa5d08

Please sign in to comment.