-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from splunk/master
resync develop
- Loading branch information
Showing
4 changed files
with
68 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
package/etc/conf.d/log_paths/p_rfc3164-proofpoint_pps_filter.conf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # Proofpoint | ||
| {{ $context := dict "port_id" "PROOFPOINT_PPS_FILTER" "parser" "common" }} | ||
| {{ tmpl.Exec "t/source_network.t" $context }} | ||
| # The following is an inline template; we will use this to generate the actual log path | ||
| {{ define "log_path" }} | ||
| log { | ||
| {{- if eq (.) "yes" }} | ||
| source(s_DEFAULT); | ||
| filter(f_proofpoint_pps_filter); | ||
| {{- end }} | ||
| {{- if eq (.) "no" }} | ||
| source (s_PROOFPOINT_PPS_FILTER); | ||
| {{- end }} | ||
|
|
||
| rewrite { | ||
| set("proofpoint_pps_filter", value("fields.sc4s_vendor_product")); | ||
| r_set_splunk_dest_default(sourcetype("pps_filter_log"), index("email"))}; | ||
| parser { | ||
| p_add_context_splunk(key("proofpoint_pps_filter")); | ||
| }; | ||
|
|
||
| parser (compliance_meta_by_source); | ||
|
|
||
|
|
||
| #We want to unset the fields we won't need, as this is copied into the | ||
| #disk queue for network destinations. This can be very disk expensive | ||
| #if we don't | ||
| rewrite { | ||
| set("$(template ${fields.sc4s_template} $(template t_msg_only))" value("MSG")); | ||
| unset(value("RAWMSG")); | ||
| unset(value("PROGRAM")); | ||
| unset(value("LEGACY_MSGHDR")); | ||
| groupunset(values(".kv.*")); | ||
| }; | ||
|
|
||
| destination(d_hec); | ||
|
|
||
| {{- if (getenv "SC4S_ARCHIVE_GLOBAL") or (getenv "SC4S_ARCHIVE_PROOFPOINT_PPS") }} | ||
| destination(d_archive); | ||
| {{- end}} | ||
|
|
||
| flags(flow-control); | ||
| }; | ||
| {{- end}} | ||
|
|
||
| {{- if or (or (getenv (print "SC4S_LISTEN_PROOFPOINT_PPS_FILTER_TCP_PORT")) (getenv (print "SC4S_LISTEN_PROOFPOINT_PPS_FILTER_UDP_PORT"))) (getenv (print "SC4S_LISTEN_PROOFPOINT_PPS_FILTER_TLS_PORT")) }} | ||
| # Listen on the specified dedicated port(s) for PROOFPOINT_PPS_FILTER traffic | ||
| {{ tmpl.Exec "log_path" "no" }} | ||
| {{- end}} | ||
|
|
||
| # Listen on the default port (typically 514) for PROOFPOINT_PPS_FILTER traffic | ||
| {{ tmpl.Exec "log_path" "yes" }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,4 +14,4 @@ flake8 | |
| pytz | ||
| flaky | ||
| #pytest-randomly | ||
| pytest-parallel | ||
| pytest-parallel | ||