-
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.
Support Cisco ASA and misc fixes (#17)
* Support Cisco ASA and misc fixes Fixes #14 Fixes #15 Fixes #16 * fix typo in rfc number
- Loading branch information
Ryan Faircloth
authored and
GitHub
committed
Jul 12, 2019
1 parent
8f20ae0
commit 84b1f84
Showing
4 changed files
with
72 additions
and
3 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| log { | ||
| source(s_default-ports); | ||
|
|
||
| filter {tags("cisco:asa") | ||
| or message('^.{10,60} : %ASA-\d+-\d{1,10}: ') | ||
| ;}; | ||
|
|
||
| #Cisco ASA can send 3164 or 5424 either way we are good with basic parsing | ||
| parser { | ||
| #basic parsing | ||
| syslog-parser(time-zone(`default-timezone`)); | ||
| }; | ||
|
|
||
| #set the source type based on program field and lookup index from the splunk context csv | ||
| parser {p_add_context_splunk(key("cisco:asa")); }; | ||
|
|
||
| #rewrite the final message for splunk json | ||
| #sourcetype and index are set in the filter defaults won't be used | ||
| rewrite {r_set_splunk_basic(template("t_msg_only")) }; #--HEC-- | ||
|
|
||
| destination(d_hec); #--HEC-- | ||
|
|
||
| flags(final); | ||
| }; |
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 |
|---|---|---|
|
|
@@ -57,5 +57,5 @@ log { | |
|
|
||
| destination(d_hec); #--HEC-- | ||
|
|
||
| #flags(final); | ||
| flags(final); | ||
| }; | ||
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