mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix issue with sumstats script and fix baselines that were crashing previously
This commit is contained in:
parent
7496cf14c7
commit
b8287a3375
3 changed files with 10 additions and 7 deletions
|
@ -328,13 +328,16 @@ function request_all_current_keys(uid: string, ss_name: string, cleanup: bool)
|
|||
if ( uid in stats_keys && |stats_keys[uid]| > 0 )
|
||||
{
|
||||
#print fmt(" -- %d remaining keys here", |stats_keys[uid]|);
|
||||
for ( key in stats_keys[uid] )
|
||||
local key: Key;
|
||||
for ( k in stats_keys[uid] )
|
||||
{
|
||||
key = k;
|
||||
break; # only a single key
|
||||
}
|
||||
|
||||
done_with[uid] = 0;
|
||||
event SumStats::cluster_get_result(uid, ss_name, key, cleanup);
|
||||
delete stats_keys[uid][key];
|
||||
break; # only a single key
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Host: 1.2.3.4 - num:9 - sum:437.0 - avg:48.6 - max:95.0 - min:3.0 - var:758.8 - std_dev:27.5 - unique:8 - hllunique:8
|
||||
Host: 10.10.10.10 - num:1 - sum:5.0 - avg:5.0 - max:5.0 - min:5.0 - var:0.0 - std_dev:0.0 - unique:1 - hllunique:1
|
||||
Host: 6.5.4.3 - num:2 - sum:6.0 - avg:3.0 - max:5.0 - min:1.0 - var:8.0 - std_dev:2.8 - unique:2 - hllunique:2
|
||||
Host: 7.2.1.5 - num:2 - sum:145.0 - avg:72.5 - max:91.0 - min:54.0 - var:684.5 - std_dev:26.2 - unique:2 - hllunique:2
|
||||
Host: 10.10.10.10 - num:1 - sum:5.0 - avg:5.0 - max:5.0 - min:5.0 - var:0.0 - std_dev:0.0 - unique:1 - hllunique:1
|
||||
|
|
|
@ -2,7 +2,7 @@ Host: 1.2.3.4 Sampled observations: 34
|
|||
[52, 61, 95, 95, 181]
|
||||
Host: 6.5.4.3 Sampled observations: 2
|
||||
[2, 5]
|
||||
Host: 7.2.1.5 Sampled observations: 2
|
||||
[1, 91]
|
||||
Host: 10.10.10.10 Sampled observations: 1
|
||||
[5]
|
||||
Host: 7.2.1.5 Sampled observations: 2
|
||||
[1, 91]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue