Да, если вы строите свой Zeek с --enable-debug
, то есть дополнительная опция командной строки, которая позволяет включать / отключать несколько потоков отладки:
$ zeek --help
...
-B|--debug <dbgstreams> | Enable debugging output for selected streams ('-B help' for help)
$ zeek -B help
Enable debug output into debug.log with -B <streams>.
<streams> is a comma-separated list of streams to enable.
Available streams:
serial
rules
state
chunkedio
string
notifiers
main-loop
dpd
tm
logging
input
threading
file_analysis
plugins
zeekygen
pktio
broker
scripts
plugin-<plugin-name> (replace '::' in name with '-'; e.g., '-B plugin-Bro-Netmap')
Pseudo streams
verbose Increase verbosity.
all Enable all streams at maximum verbosity.
Для каждого из включенных вами потоков,затем вы найдете соответствующие записи в debug.log
:
$ zeek -B all -r test.pcap
$ head debug.log
0.000000/1559682553.492973 [zeekygen] Made ScriptInfo base/init-bare.zeek
0.000000/1559682553.492997 [scripts] Loading /home/christian/inst/opt/zeek/share/bro//base/init-bare.zeek
0.000000/1559682553.493094 [serial] Write bool true [true]
0.000000/1559682553.493099 [serial] bool SerialObj::Serialize(SerialInfo*) const [0x3668000, new pid 0, tid 528948]
0.000000/1559682553.493103 [serial] -- Caching
0.000000/1559682553.493105 [serial] Write bool true [full]
0.000000/1559682553.493122 [serial] Write uint64 0 [pid]
0.000000/1559682553.493126 [serial] virtual bool EnumType::DoSerialize(SerialInfo*) const
0.000000/1559682553.493128 [serial] virtual bool BroType::DoSerialize(SerialInfo*) const
0.000000/1559682553.493131 [serial] virtual bool BroObj::DoSerialize(SerialInfo*) const