zeek/testing/btest/scripts/base/protocols/dhcp/dhcp-prevent-large-uids.zeek
Peter Cullen fb4858d42b Prevent large dhcp log entries
A flood of DHCP traffic can result if very large log entries consisting
of many uids and/or msg_types. Such large log entries can disrupt a SIEM
ingestion pipeline. This change forcing a log entry to be written when
the number of uids or the number of msg_Types exceed a certain value.
The values are treated as options for easy configuration.
2022-07-28 11:34:18 -07:00

7 lines
241 B
Text

# This tests that DHCP log entries do not contain large numbers
# of uids.
# @TEST-EXEC: zeek -b -r $TRACES/dhcp/dhcp_flood.pcap -e ' redef DHCP::max_uids_per_log_entry=5' %INPUT
# @TEST-EXEC: btest-diff dhcp.log
@load base/protocols/dhcp