Use explicit path name for NTP log stream

For consistency (we do this for all other logs) and just to avoid
the extra path function calls.
This commit is contained in:
Jon Siwek 2019-10-25 10:38:58 -07:00
parent cf05b1d7dc
commit 81ab0b0d05
4 changed files with 19 additions and 18 deletions

View file

@ -59,7 +59,7 @@ redef likely_server_ports += { ports };
event zeek_init() &priority=5
{
Analyzer::register_for_ports(Analyzer::ANALYZER_NTP, ports);
Log::create_stream(NTP::LOG, [$columns = Info, $ev = log_ntp]);
Log::create_stream(NTP::LOG, [$columns = Info, $ev = log_ntp, $path="ntp"]);
}
event ntp_message(c: connection, is_orig: bool, msg: NTP::Message) &priority=5