zeek/scripts/base
Jon Siwek 35827eeb31 Add rate-limiting sampling mechanism for weird events
The generation of weird events, by default, are now rate-limited
according to these tunable options:

  - Weird::sampling_whitelist
  - Weird::sampling_threshold
  - Weird::sampling_rate
  - Weird::sampling_duration

The new get_reporter_stats() BIF also allows one to query the
total number of weirds generated (pre-sampling) which the new
policy/misc/weird-stats.bro script uses periodically to populate
a weird_stats.log.

There's also new reporter BIFs to allow generating weirds from the
script-layer such that they go through the same, internal
rate-limiting/sampling mechanisms:

  - Reporter::conn_weird
  - Reporter::flow_weird
  - Reporter::net_weird

Some of the code was adapted from previous work by Johanna Amann.
2018-07-26 19:57:36 -05:00
..
files Remove some UTF-8 characters that snuck into a few strings. 2018-06-02 04:37:08 -04:00
frameworks Merge remote-tracking branch 'origin/topic/johanna/config-cluster' 2018-07-24 01:36:59 +00:00
misc Fix at_least in Version.bro. 2017-06-05 15:16:41 -07:00
protocols Add rate-limiting sampling mechanism for weird events 2018-07-26 19:57:36 -05:00
utils Merge topic/actor-system throug a squashed commit. 2018-05-18 22:39:23 +00:00
init-bare.bro Add rate-limiting sampling mechanism for weird events 2018-07-26 19:57:36 -05:00
init-default.bro Merge topic/actor-system throug a squashed commit. 2018-05-18 22:39:23 +00:00
init-frameworks-and-bifs.bro Allow BRO_DEFAULT_LISTEN_ADDRESS to control broker listen address 2018-06-01 15:38:11 -05:00