zeek/testing/btest/scripts/base/protocols/redis/bulk.zeek
2025-05-27 09:28:12 -04:00

14 lines
613 B
Text

# @TEST-DOC: Test Zeek parsing a trace file made with bulk-created SET commands
#
# @TEST-EXEC: zeek -Cr $TRACES/redis/bulk-loading.pcap base/protocols/redis %INPUT >output
# @TEST-EXEC: btest-diff output
# The bulk-loading functionality just sends the serialized form from some ruby
# code directly to the server, but it's useful to see if that trace might come
# up with something different. See:
# https://redis.io/docs/latest/develop/use/patterns/bulk-loading/
event Redis::set_command(c: connection, is_orig: bool,
command: Redis::SetCommand)
{
print fmt("SET: %s %s", command$key, command$value);
}