mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Porting syslog analyzer as another example.
The diff to this commit shows what "porting" involves ... This also adds a small test for syslog.
This commit is contained in:
parent
d5865c67cb
commit
1a30a57816
16 changed files with 85 additions and 48 deletions
|
@ -38,7 +38,7 @@ redef record connection += {
|
|||
event bro_init() &priority=5
|
||||
{
|
||||
Log::create_stream(Syslog::LOG, [$columns=Info]);
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_SYSLOG_BINPAC, ports);
|
||||
Analyzer::register_for_ports(Analyzer::ANALYZER_SYSLOG, ports);
|
||||
}
|
||||
|
||||
event syslog_message(c: connection, facility: count, severity: count, msg: string) &priority=5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue