zeek/scripts/base/frameworks
Johanna Amann 6b9abe85a7 Add error events to input framework.
This change introduces error events for Table and Event readers. Users
can now specify an event that is called when an info, warning, or error
is emitted by their input reader. This can, e.g., be used to raise
notices in case errors occur when reading an important input stream.

Example:

event error_event(desc: Input::TableDescription, msg: string, level: Reporter::Level)
	{
	...
	}

event bro_init()
	{
	Input::add_table([$source="a", $error_ev=error_event, ...]);
	}

For the moment, this converts all errors in the Asciiformatter into
warnings (to show that they are non-fatal) - the Reader itself also has
to throw an Error to show that a fatal error occurred and processing
will be abort.

It might be nicer to change this and require readers to mark fatal
errors as such when throwing them.

Addresses BIT-1181
2016-07-22 19:45:28 -07:00
..
analyzer Add README files for most Bro frameworks 2013-10-11 00:19:37 -05:00
broker Fix Bro and unit tests when broker is not enabled 2016-05-10 06:24:35 -05:00
cluster Add some missing Bro script documentation 2016-05-05 16:35:31 -05:00
communication Allow logging filters to inherit default path from stream. 2015-03-19 14:49:55 -05:00
control Add README files for most Bro frameworks 2013-10-11 00:19:37 -05:00
dpd Allow logging filters to inherit default path from stream. 2015-03-19 14:49:55 -05:00
files Add ACE archive files to the identified file types. 2016-06-14 22:27:09 -04:00
input Add error events to input framework. 2016-07-22 19:45:28 -07:00
intel Merge remote-tracking branch 'origin/topic/johanna/intel-uid-fuid' 2016-04-28 10:20:50 -07:00
logging Fix a "make doc" warning 2015-05-29 14:38:50 -05:00
netcontrol Merge remote-tracking branch 'origin/topic/johanna/netcontrol-improvements' 2016-06-30 17:34:44 -07:00
notice Use NetControl for ACTION_DROP of notice framework. 2016-06-22 16:01:26 -07:00
openflow Merge remote-tracking branch 'origin/master' into topic/johanna/netcontrol-improvements 2016-05-19 16:17:07 -07:00
packet-filter Fix a number of documentation building errors 2016-06-27 12:41:40 -07:00
reporter Add error events to input framework. 2016-07-22 19:45:28 -07:00
signatures Log::write in signature framework was missing ts 2015-03-25 12:01:09 -07:00
software Updated detection of Flash and AdobeAIR. 2015-07-24 14:33:53 +02:00
sumstats Add more documentation to sumstats framework scripts 2016-03-01 17:31:41 -06:00
tunnels Allow logging filters to inherit default path from stream. 2015-03-19 14:49:55 -05:00