Skip to content

Commit

Permalink
Merge branch 'develop' into feature/udp-multi-listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth authored and GitHub committed Apr 1, 2020
2 parents 73871fe + 9078ca9 commit 3548019
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ docker stack deploy --compose-file docker-compose.yml sc4s
## Dropping all data by ip or subnet

In some cases rogue or port-probing data can be sent to SC4S from misconfigured devices or vulnerability scanners. Update
the `vendor_product_by_source.conf` filter `f_catch_first` with one or more ip/subnet masks to drop events without
the `vendor_product_by_source.conf` filter `f_null_queue` with one or more ip/subnet masks to drop events without
logging. Note that drop metrics will be recorded.


Expand Down
4 changes: 2 additions & 2 deletions docs/sources/Cisco/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ index=<asconfigured> sourcetype=cisco:apic:*

Verify timestamp, and host values match as expected

## Product - ASA (Pre Firepower)
## Product - ASA AND FTD (Firepower)

| Ref | Link |
|----------------|---------------------------------------------------------------------------------------------------------|
Expand All @@ -109,7 +109,7 @@ Verify timestamp, and host values match as expected

| sourcetype | notes |
|----------------|---------------------------------------------------------------------------------------------------------|
| cisco:asa | None |
| cisco:asa | cisco FTD Firepower will also use this source type |
| cisco:pix | Not supported |
| cisco:fwsm | Not supported |

Expand Down
7 changes: 5 additions & 2 deletions package/etc/conf.d/filters/cisco/asa.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
filter f_cisco_asa {
message('^%ASA-\d+-\d{1,10}: ') or
match('^%ASA-\d+-\d{1,10}:', value("LEGACY_MSGHDR"));
match('^%ASA-\d+-\d{1,10}:', value("LEGACY_MSGHDR")) or
message('^%FTD-\d+-\d{1,10}: ') or
match('^%FTD-\d+-\d{1,10}:', value("LEGACY_MSGHDR"));
};

filter f_cisco_asa_nohost {
match('^%ASA-\d+-\d{1,10}:', value("LEGACY_MSGHDR"));
match('^%ASA-\d+-\d{1,10}:', value("LEGACY_MSGHDR"))
or match('^%FTD-\d+-\d{1,10}:', value("LEGACY_MSGHDR"));
};
5 changes: 0 additions & 5 deletions package/etc/conf.d/filters/misc/catchfirst.conf

This file was deleted.

5 changes: 5 additions & 0 deletions package/etc/conf.d/filters/misc/null_queue.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#f_null_queue
filter f_null_queue {
match("^null_queue", value("fields.sc4s_vendor_product"));

};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vulnerability scanners to be ignored
log {

filter(f_catch_first);
filter(f_null_queue);

flags(catchall,final);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ filter f_test_test {
host("testvp-*" type(glob))
#or netmask(xxx.xxx.xxx.xxx/xx)
};
filter f_catch_first {
filter f_null_queue {
netmask(169.254.100.0/24)
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
f_test_test,sc4s_vendor_product,"test_test"
f_brocade_syslog,sc4s_vendor_product,"brocade_syslog"
f_catch_first,sc4s_vendor_product,"catch_first"
f_null_queue,sc4s_vendor_product,"catch_first"
f_cisco_meraki,sc4s_vendor_product,"cisco_meraki"
f_citrix_netscaler,sc4s_vendor_product,"citrix_netscaler"
f_dell_rsa_secureid,sc4s_vendor_product,"dell_rsa_secureid"
Expand Down

0 comments on commit 3548019

Please sign in to comment.