Skip to content

Commit

Permalink
Update lp-paloalto_panos.conf.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Mar 5, 2020
1 parent c9e3932 commit 8b3f13e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions package/etc/conf.d/log_paths/lp-paloalto_panos.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,25 @@ log {

#set the source type based on program field and lookup index from the splunk_context csv

if (message(',\d+,THREAT')) {
if (message(',[0-9A-F]+,THREAT')) {
rewrite { r_set_splunk_dest_default(sourcetype("pan:threat"), index("netproxy"))};
parser {p_add_context_splunk(key("pan_threat")); };
} elif (message(',\d+,TRAFFIC')) {
} elif (message(',[0-9A-F]+,TRAFFIC')) {
rewrite { r_set_splunk_dest_default(sourcetype("pan:traffic"), index("netfw"))};
parser {p_add_context_splunk(key("pan_traffic")); };
} elif (message(',\d+,SYSTEM')) {
} elif (message(',[0-9A-F]+,SYSTEM')) {
rewrite { r_set_splunk_dest_default(sourcetype("pan:system"), index("netops"))};
parser {p_add_context_splunk(key("pan_system")); };
} elif (message(',\d+,CONFIG')) {
} elif (message(',[0-9A-F]+,CONFIG')) {
rewrite { r_set_splunk_dest_default(sourcetype("pan:config"), index("netops"))};
parser {p_add_context_splunk(key("pan_config")); };
} elif (message(',\d+,HIPWATCH')) {
} elif (message(',[0-9A-F]+,HIPWATCH')) {
rewrite { r_set_splunk_dest_default(sourcetype("pan:hipwatch"), index("main"))};
parser {p_add_context_splunk(key("pan_hipwatch")); };
} elif (message(',\d+,CORRELATION')) {
} elif (message(',[0-9A-F]+,CORRELATION')) {
rewrite { r_set_splunk_dest_default(sourcetype("pan:correlation"), index("main"))};
parser {p_add_context_splunk(key("pan_correlation")); };
} elif (message(',\d+,USERID')) {
} elif (message(',[0-9A-F]+,USERID')) {
rewrite { r_set_splunk_dest_default(sourcetype("pan:userid"), index("netauth"))};
parser {p_add_context_splunk(key("pan_userid")); };
} else {
Expand Down

0 comments on commit 8b3f13e

Please sign in to comment.