Skip to content

Commit

Permalink
[filter] improve f5 filter logic (#601)
Browse files Browse the repository at this point in the history
* [filter] Additional severity levels for f5

* [filter] improve f5 matching

* Fix indents

* Fix indents

Co-authored-by: mbonsack <mbonsack@splunk.com>
  • Loading branch information
2 people authored and GitHub committed Jul 31, 2020
1 parent eafca28 commit 0d29de7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package/etc/conf.d/filters/f5/bigip.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ filter f_f5_bigip {
or match('^\[F5@12276' value("SDATA"))
or program("tmsh")
or program("mcpd")
or program("mprov")
or program("apmd")
or program("tmm\d?")
or program('^f5_irule=')
Expand All @@ -16,7 +17,7 @@ filter f_f5_bigip_irule {

filter f_f5_bigip_message {
message(
'^(?i)(<\d+> ?[[:alpha:]]+\s{1,2}\d{1,2} \d\d:\d\d:\d\d )(?:([^\/]+)(?:\/))?([^ ]+) +(?:notice|err|error|warning|info) +?(.*)'
'^(?i)(<\d+> ?[[:alpha:]]+\s{1,2}\d{1,2} \d\d:\d\d:\d\d )(?:([^\/ ]+)(?:\/))?([^ ]+) +(?:alert|debug|notice|err|error|warning|info|emerg) +?(.*)'
flags(store-matches)
);
};
Expand Down
1 change: 1 addition & 0 deletions package/etc/conf.d/log_paths/lp-f5_bigip.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ log {
filter{
program("tmsh")
or program("mcpd")
or program("mprov")
or program("apmd")
or program("tmm\d?")
};
Expand Down
3 changes: 1 addition & 2 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ services:
build:
context: ../package
hostname: sc4s
#When this is enabled test_common will fail
# command: -det
command: -det
ports:
- "514"
- "601"
Expand Down

0 comments on commit 0d29de7

Please sign in to comment.