Skip to content

Commit

Permalink
Update lp-vmware_vsphere.conf.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed May 29, 2020
1 parent 8799d4e commit 62d2592
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package/etc/conf.d/log_paths/lp-vmware_vsphere.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ log {
parser (compliance_meta_by_source);
rewrite { set("$(template ${.splunk.sc4s_template} $(template t_legacy_hdr_msg))" value("MSG")); };
} elif {
filter(f_is_rfc5424_strict);
filter(f_vmware_vcenter);

rewrite {
set("vmware_vcenter", value("fields.sc4s_vendor_product"));
r_set_splunk_dest_default(sourcetype("vmware:vsphere:vcenter"), index("main"), source("program:${PROGRAM}"));
};
parser { p_add_context_splunk(key("vmware_vcenter")); };
parser (compliance_meta_by_source);
rewrite { set("$(template ${.splunk.sc4s_template} $(template t_JSON_5424))" value("MSG")); };
} elif {

filter(f_vmware_vcenter);

Expand Down

0 comments on commit 62d2592

Please sign in to comment.