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:
Robin Sommer 2013-04-05 13:12:16 -07:00
parent d5865c67cb
commit 1a30a57816
16 changed files with 85 additions and 48 deletions

View file

@ -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