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

This is a serializer for log records that is using SerialTypes for serializing and un-serializing rather. Essentially, this is similar to what broker does except for the envelope.
13 lines
530 B
Text
13 lines
530 B
Text
# @TEST-DOC: Test cluster backend enum
|
|
#
|
|
# @TEST-EXEC: zeek -NN Zeek::Broker_Serializer >>out
|
|
# @TEST-EXEC: zeek -NN Zeek::Binary_Serializer >>out
|
|
# @TEST-EXEC: zeek -b %INPUT >>out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event zeek_init()
|
|
{
|
|
print Cluster::EVENT_SERIALIZER_BROKER_BIN_V1, type_name(Cluster::EVENT_SERIALIZER_BROKER_BIN_V1);
|
|
print Cluster::EVENT_SERIALIZER_BROKER_JSON_V1, type_name(Cluster::EVENT_SERIALIZER_BROKER_JSON_V1);
|
|
print Cluster::LOG_SERIALIZER_ZEEK_BIN_V1, type_name(Cluster::LOG_SERIALIZER_ZEEK_BIN_V1);
|
|
}
|