mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
15 lines
509 B
Text
15 lines
509 B
Text
# @TEST-DOC: Test Zeek parsing a trace file through the RESP analyzer.
|
|
#
|
|
# @TEST-EXEC: zeek -Cr $TRACES/redis/loop-redis.trace base/protocols/redis %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
# @TEST-EXEC: btest-diff resp.log
|
|
|
|
event RESP::set_command(c: connection, is_orig: bool, command: RESP::SetCommand)
|
|
{
|
|
print fmt("SET: %s %s", command$key, command$value);
|
|
}
|
|
|
|
event RESP::get_command(c: connection, is_orig: bool, command: RESP::GetCommand)
|
|
{
|
|
print fmt("GET: %s", command);
|
|
}
|