Skip to content

Commit

Permalink
Update for syntax changes in develop
Browse files Browse the repository at this point in the history
Remove use of the index macro and ensure the source is set if not provided
  • Loading branch information
Ryan Faircloth authored and GitHub committed Jun 15, 2020
1 parent c381178 commit d002666
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions package/etc/conf.d/log_paths/lp-mcafee_epo.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ log {
rewrite {
set("$(lowercase $1)" value(".mcafee.product"));
subst('\s', '_', value(".mcafee.product") flags("global"));
r_set_splunk_dest_default(sourcetype("mcafee:epo:syslog"), index("epav"), source("${.mcafee.product}"))
};
r_set_splunk_dest_default(sourcetype("mcafee:epo:syslog"), source("${.mcafee.product}"))
};
} else {
# If the product is not provided by EPO we will just use a constant for the value
rewrite {
set("mcafee_epo", value("fields.sc4s_vendor_product"));
r_set_splunk_dest_default(sourcetype("mcafee:epo:syslog"), source("epo"))
};
};

rewrite {
set("mcafee_epo", value("fields.sc4s_vendor_product"));
r_set_splunk_dest_default(sourcetype("mcafee:epo:syslog"), index("epav"))
};
parser {p_add_context_splunk(key("mcafee_epo")); };

parser (compliance_meta_by_source);
rewrite { set("$(template ${.splunk.sc4s_template} $(template t_msg_only))" value("MSG")); };

Expand Down

0 comments on commit d002666

Please sign in to comment.