mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

* origin/topic/bernhard/reader-info: fix small bug - now configuration actually is passed. add mode to readerinfo - no need to have it separately everywhere anymore. introduce reader-info struct analogous to writer-info. Introduce support for a table of key/value pairs with further configuration options, with the same userinterface as in the logging interface. make writer-info work when debugging is enabled Conflicts: testing/btest/Baseline/scripts.base.frameworks.input.event/out testing/btest/Baseline/scripts.base.frameworks.input.executeraw/out testing/btest/Baseline/scripts.base.frameworks.input.raw/out testing/btest/Baseline/scripts.base.frameworks.input.rereadraw/out testing/btest/Baseline/scripts.base.frameworks.input.tableevent/out Closes #841.
153 lines
3.1 KiB
Text
153 lines
3.1 KiB
Text
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
sdfkh:KH;fdkncv;ISEUp34:Fkdj;YVpIODhfDF
|
|
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
DSF"DFKJ"SDFKLh304yrsdkfj@#(*U$34jfDJup3UF
|
|
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
q3r3057fdf
|
|
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
sdfs\d
|
|
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
|
|
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
dfsdf
|
|
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
sdf
|
|
[source=../input.log, reader=Input::READER_RAW, mode=Input::STREAM, name=input, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print A::outfile, A::description;
|
|
print A::outfile, A::tpe;
|
|
print A::outfile, A::s;
|
|
A::try = A::try + 1;
|
|
if (8 == A::try)
|
|
{
|
|
print A::outfile, done;
|
|
close(A::outfile);
|
|
Input::remove(input);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
|
|
}]
|
|
Input::EVENT_NEW
|
|
3rw43wRRERLlL#RWERERERE.
|
|
done
|