-
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.
Use a custom parser to better handle the various sources which have unique ways of sending non standard data
- Loading branch information
rfaircloth-splunk
committed
Apr 17, 2020
1 parent
0c594d1
commit 965e933
Showing
4 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
package/etc/conf.d/filters/common_event_format/cef.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,20 @@ | ||
|
|
||
| filter f_cef { | ||
| message('(<\d*>)1? ?(?:(.*) |^)(CEF:0\|.*)' flags(store-matches) | ||
| ); | ||
| }; | ||
| filter f_iscef { | ||
| match("cef" value("fields.sc4s_syslog_format")) | ||
| }; | ||
| rewrite set_cef_syslog { | ||
| set("$1" value(".PRI")); | ||
| set("$2" value(".CEFHEADER")); | ||
| set("$3" value("MSG")); | ||
| set("cef" value("fields.sc4s_syslog_format")); | ||
| }; | ||
| parser p_cef { | ||
| syslog-parser( | ||
| template("${.PRI}${.CEFHEADER} CEF: ${MSG}") | ||
| flags(guess-timezone,assume-utf8,{{- if (conv.ToBool (getenv "SC4S_SOURCE_STORE_RAWMSG" "no")) }} store-raw-message {{- end}}) | ||
| ); | ||
| }; |
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