Skip to content

Commit

Permalink
Changed sourcetype of RT_IDS events of Juniper to juniper:junos:firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Shah committed Mar 13, 2020
1 parent 6aa1b1d commit aff2520
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package/etc/conf.d/log_paths/lp-juniper_junos.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ log {
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:firewall"), index("netfw"))};
parser {p_add_context_splunk(key("juniper_junos_fw")); };
} elif (program('RT_IDS')) {
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:idp"), index("netids"))};
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:firewall"), index("netfw"))};
parser {p_add_context_splunk(key("juniper_junos_ids")); };
} elif (program('RT_UTM')) {
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:firewall"), index("netids"))};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ log {
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:firewall:structured"), index("netfw")) };
parser {p_add_context_splunk(key("juniper_junos_fw_structured")); };
} elif (program('RT_IDS')) {
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:idp:structured"), index("netids")) };
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:firewall:structured"), index("netfw")) };
parser {p_add_context_splunk(key("juniper_junos_ids_structured")); };
} elif (program('RT_UTM')) {
rewrite { r_set_splunk_dest_default(sourcetype("juniper:junos:firewall:structured"), index("netfw")) };
Expand Down
2 changes: 1 addition & 1 deletion tests/test_juniper_junos_rfc3164.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_juniper_idp_standard(record_property, setup_wordlist, get_host_key, set

sendsingle(message)

st = env.from_string("search index=netids host=\"{{ host }}\" sourcetype=\"juniper:junos:idp\" | head 2")
st = env.from_string("search index=netfw host=\"{{ host }}\" sourcetype=\"juniper:junos:idp\" | head 2")
search = st.render(host=host)

resultCount, eventCount = splunk_single(setup_splunk, search)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_juniper_junos_rfc5124.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_juniper_junos_idp_structured(record_property, setup_wordlist, get_host_

sendsingle(message)

st = env.from_string("search index=netids host=\"{{ host }}\" sourcetype=\"juniper:junos:idp:structured\" | head 2")
st = env.from_string("search index=netfw host=\"{{ host }}\" sourcetype=\"juniper:junos:idp:structured\" | head 2")
search = st.render(host=host)

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

0 comments on commit aff2520

Please sign in to comment.