mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- Metrics now work on cluster deployments with no caveats. It should be completely transparent. Intermediate updates to speed some detection will come later.
22 lines
No EOL
397 B
Text
22 lines
No EOL
397 B
Text
|
|
|
|
redef enum Metrics::ID += {
|
|
SSL_SERVERNAME,
|
|
};
|
|
|
|
event bro_init()
|
|
{
|
|
Metrics::add_filter(SSL_SERVERNAME,
|
|
[$name="no-google-ssl-servers",
|
|
$pred(index: Metrics::Index) = {
|
|
return (/google\.com$/ !in index$str);
|
|
},
|
|
$break_interval=10secs
|
|
]);
|
|
}
|
|
|
|
event SSL::log_ssl(rec: SSL::Info)
|
|
{
|
|
if ( rec?$server_name )
|
|
Metrics::add_data(SSL_SERVERNAME, [$str=rec$server_name], 1);
|
|
} |