mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Zeek Test
This commit is contained in:
19
salt/zeek/policy/custom/filters/conn
Normal file
19
salt/zeek/policy/custom/filters/conn
Normal file
@@ -0,0 +1,19 @@
|
||||
module Filterconn;
|
||||
|
||||
export {
|
||||
global ignore_services: set[string] = {"dns", "krb", "krb_tcp"};
|
||||
}
|
||||
|
||||
hook Conn::log_policy(rec: Conn::Info, id: Log::ID, filter: Log::Filter)
|
||||
{
|
||||
# Record only connections not in the ignored services
|
||||
if ( ! rec?$service || rec$service in ignore_services )
|
||||
break;
|
||||
}
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
Log::remove_default_filter(Conn::LOG);
|
||||
local filter: Log::Filter = [$name="conn-filter"];
|
||||
Log::add_filter(Conn::LOG, filter);
|
||||
}
|
||||
@@ -17,6 +17,11 @@ zeek:
|
||||
CompressLogs:
|
||||
description: Enable compression of zeek logs. If you are seeing packet loss at the top of the hour in zeek or pcap you might need to set this to 0. This will use more disk space but save IO and CPU.
|
||||
policy:
|
||||
custom:
|
||||
filters:
|
||||
conn:
|
||||
description: Conn Filter for Zeek
|
||||
file: True
|
||||
file_extraction:
|
||||
description: This is a list of mime types Zeek will extract from the network streams.
|
||||
load:
|
||||
|
||||
Reference in New Issue
Block a user