Move spicy/misc scripts to policy and clarify purpose.

This commit is contained in:
Robin Sommer 2023-05-15 17:20:01 +02:00
parent a62e153dd3
commit ecf00295c2
No known key found for this signature in database
GPG key ID: D8187293B3FFE5D0
6 changed files with 12 additions and 4 deletions

View file

@ -23,7 +23,8 @@ export {
# doc-options-end
# doc-types-start
## Result type for `Spicy::resource_usage()`.
## Result type for `Spicy::resource_usage()`. The values reflect resource
## usage as reported by the Spicy runtime system.
type ResourceUsage: record {
user_time : interval; ##< user CPU time of the Zeek process
system_time :interval; ##< system CPU time of the Zeek process

View file

@ -1,4 +1,4 @@
# Saves all input traffic in Spicy's batch format.
##! Saves all input traffic in Spicy's batch format.
module SpicyBatch;

View file

@ -1,3 +1,5 @@
##! Logs Spicy-related resource usage continously for debugging purposes.
module Spicy;
event print_usage()

View file

@ -72,6 +72,8 @@
@load frameworks/packet-filter/shunt.zeek
@load frameworks/software/version-changes.zeek
@load frameworks/software/vulnerable.zeek
# @load frameworks/spicy/record-spicy-batch.zeek
# @load frameworks/spicy/resource-usage.zeek
@load frameworks/software/windows-version-detection.zeek
@load frameworks/telemetry/log.zeek
@load integration/collective-intel/__load__.zeek

View file

@ -13,6 +13,11 @@
@load policy/misc/dump-events.zeek
@load policy/protocols/conn/speculative-service.zeek
@if ( have_spicy() )
@load frameworks/spicy/record-spicy-batch.zeek
@load frameworks/spicy/resource-usage.zeek
@endif
@load ./example.zeek
event zeek_init()

View file

@ -10,8 +10,6 @@
-./frameworks/netcontrol/cluster.zeek
-./frameworks/openflow/cluster.zeek
-./frameworks/packet-filter/cluster.zeek
-./frameworks/spicy/misc/record-spicy-batch.zeek
-./frameworks/spicy/misc/resource-usage.zeek
-./frameworks/sumstats/cluster.zeek
-./frameworks/telemetry/cluster.zeek
-./init-supervisor.zeek