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