mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Add policy script to remove ip_proto field, rename protocol naming script
This commit is contained in:
parent
5e5aceb6f7
commit
623fea9014
5 changed files with 18 additions and 4 deletions
|
@ -0,0 +1,11 @@
|
|||
##! This script filters the ip_proto field out of the conn.log and disables
|
||||
##! logging of connections with unknown IP protocols.
|
||||
|
||||
@load base/protocols/conn
|
||||
@load base/frameworks/analyzer/main
|
||||
|
||||
redef record Conn::Info$ip_proto -= { &log };
|
||||
|
||||
event zeek_init() {
|
||||
Analyzer::disable_analyzer(PacketAnalyzer::ANALYZER_UNKNOWN_IP_TRANSPORT);
|
||||
}
|
|
@ -1,4 +1,6 @@
|
|||
##! This script adds a string version of the ip_proto field
|
||||
##! This script adds a string version of the ip_proto field. It's not recommended
|
||||
##! to load this policy and the ip_proto removal policy at the same time, as
|
||||
##! conn.log will end up with useless information in the log from this field.
|
||||
|
||||
@load base/protocols/conn
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue