Skip to content

Commit

Permalink
Update index from netops to netwaf for the f5_bigip_asm events
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahir Chavda committed May 6, 2020
1 parent 88dd159 commit c91f57f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/etc/conf.d/log_paths/lp-f5_bigip.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ log {
};
rewrite {
set("f5_bigip_asm", value("fields.sc4s_vendor_product"));
r_set_splunk_dest_default(sourcetype("f5:bigip:asm:syslog"), index("netops"))
r_set_splunk_dest_default(sourcetype("f5:bigip:asm:syslog"), index("netwaf"))
};
parser { p_add_context_splunk(key("f5_bigip_asm")); };
parser (compliance_meta_by_source);
Expand Down
2 changes: 1 addition & 1 deletion package/etc/context_templates/splunk_index.csv.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#forcepoint_webprotect,index,netproxy
#f5_bigip,index,netops
#f5_bigip_irule,index,netops
#f5_bigip_asm,index,netops
#f5_bigip_asm,index,netwaf
#f5_bigip_nix,index,netops
#fortinet_fortios_event,index,netops
#fortinet_fortios_log,index,netops
Expand Down
2 changes: 1 addition & 1 deletion tests/test_f5_bigip.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def test_f5_bigip_asm_syslog(record_property, setup_wordlist, get_host_key, setu
sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])

st = env.from_string(
"search index=netops _time={{ epoch }} sourcetype=\"f5:bigip:asm:syslog\" host=\"{{ host }}\"")
"search index=netwaf _time={{ epoch }} sourcetype=\"f5:bigip:asm:syslog\" host=\"{{ host }}\"")
search = st.render(epoch=epoch, host=host)

resultCount, eventCount = splunk_single(setup_splunk, search)
Expand Down

0 comments on commit c91f57f

Please sign in to comment.