mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
![]() Add new syntax for adding and removing attributes from record fields: redef RecordType$field_name += { &log }; redef RecordType$field_name -= { &log }; For now this only allowed for the &log attribute as the semantics are clear. For &default and &optional the semantics aren't obvious and no use-cases have been identified where those would make sense to change. This enables a mechanism to add potentially interesting fields to the typical Info records in base scripts, but letting users opt-into actually including them into their log. At the same time, users that find specific fields in a standard log uninteresting can opt-out without using `Log::Filter$exclude` which can be difficult to use correctly. Patching or forking external packages to remove columns from a log can also be avoided with this mechanism. Closes #2000. |
||
---|---|---|
.. | ||
benchmark/broker | ||
btest | ||
coverage | ||
external | ||
scripts | ||
.gitignore | ||
CMakeLists.txt | ||
Makefile | ||
README |
This directory contains suites for testing for Zeek's correct operation: btest/ An ever-growing set of small unit tests testing Zeek's functionality. external/ A framework for downloading additional test sets that run more complex Zeek configuration on larger traces files. Due to their size, these are not included directly. See the README for more information. scripts/ Helpers scripts used by some tests.