mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
testing/external: Exclude telemetry.log from baselines
The diffs produced by telemetry.log when introducing a weird or removing/adding protocol specific logs is overwhelming and distracting without providing value. Exclude telemetry.log similar to how we already exclude stats.log. Some more targeted telemetry.log tests exists in the normal testing/btest suite and that appears more sensible.
This commit is contained in:
parent
19719b1862
commit
e12e873461
4 changed files with 3 additions and 34 deletions
31
testing/external/scripts/testing-setup.zeek
vendored
31
testing/external/scripts/testing-setup.zeek
vendored
|
@ -13,37 +13,6 @@
|
|||
redef LogAscii::use_json = F;
|
||||
@endif
|
||||
|
||||
# Exclude process metrics, they are non-deterministic.
|
||||
redef Telemetry::log_prefixes -= { "process" };
|
||||
|
||||
# Increase default telemetry.log 30x to reduce log size
|
||||
# for traces spanning a long time period.
|
||||
redef Telemetry::log_interval = 1800sec;
|
||||
|
||||
# Prevent the version_info metric from being logged as it's not deterministic.
|
||||
hook Telemetry::log_policy(rec: Telemetry::Info, id: Log::ID, filter: Log::Filter)
|
||||
{
|
||||
if ( rec$prefix == "zeek" && rec$name == "version_info" )
|
||||
break;
|
||||
}
|
||||
|
||||
hook Telemetry::log_policy(rec: Telemetry::Info, id: Log::ID, filter: Log::Filter)
|
||||
{
|
||||
if ( rec$prefix != "zeek" )
|
||||
return;
|
||||
|
||||
# Filter all event-handler-invocations entries from telemetry.log
|
||||
# except those having something to do with connection_*
|
||||
if ( rec$name == "event-handler-invocations" && /connection_.*/ !in cat(rec$label_values) )
|
||||
break;
|
||||
|
||||
# Filter out the LoadedScripts stream due to platform dependent
|
||||
# difference in the scripts loaded, and also filter out Telemetry
|
||||
# log counts.
|
||||
if ( rec$name == /log-.*/ && /LoadedScripts::LOG|Telemetry::LOG/ in cat(rec$label_values) )
|
||||
break;
|
||||
}
|
||||
|
||||
# The IMAP analyzer includes absolute filenames in its error messages,
|
||||
# exclude it for now from analyzer.log.
|
||||
# https://github.com/zeek/zeek/issues/2659
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue