mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
12 lines
348 B
Text
12 lines
348 B
Text
# @TEST-EXEC: bro %INPUT
|
|
# @TEST-EXEC: btest-diff metrics.log
|
|
|
|
event bro_init() &priority=5
|
|
{
|
|
Metrics::add_filter("test.metric",
|
|
[$name="foo-bar",
|
|
$break_interval=3secs]);
|
|
Metrics::add_data("test.metric", [$host=1.2.3.4], 3);
|
|
Metrics::add_data("test.metric", [$host=6.5.4.3], 2);
|
|
Metrics::add_data("test.metric", [$host=7.2.1.5], 1);
|
|
}
|