Skip to content

Commit

Permalink
Fix host parsing in RSA log path (#652)
Browse files Browse the repository at this point in the history
* Fix host parsing in RSA log path to take into account the new `.splunk.host` macro for host output in Splunk `/event` JSON blob
  • Loading branch information
mbonsack authored and GitHub committed Aug 20, 2020
1 parent c4d0f57 commit 7d519c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion package/etc/conf.d/log_paths/lp-dell_rsa_secureid.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ log {

#we need to actual even time from the field GeneratedTime. Use csv-parser to extract it.
csv-parser(
columns("time","ms","HOST","type")
columns("time","ms","host","type")
prefix(".rsa.")
delimiters(',')
);
Expand All @@ -40,6 +40,13 @@ log {
template("${LEGACY_MSGHDR} ${.rsa.time},${.rsa.ms}")
);
};
rewrite {
#Set both HOST and .splunk.host to allow compliance override
set("${.rsa.host}" value(".splunk.host")
condition( match('^.' value('.rsa.host') )) );
set("${.rsa.host}" value("HOST")
condition( match('^.' value('.rsa.host') )) );
};
if {
filter{match('audit\.admin' value('.rsa.type'))};
rewrite {
Expand Down

0 comments on commit 7d519c2

Please sign in to comment.