mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
13 lines
506 B
Text
13 lines
506 B
Text
# @TEST-DOC: Test Redis traffic from a django app using Redis as a cache
|
|
#
|
|
# @TEST-EXEC: zeek -Cr $TRACES/redis/django-cache.pcap 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 the whole command because these have extra data that's worth capturing.
|
|
print fmt("SET: %s %s expires in %d milliseconds", command$key, command$value,
|
|
command$px);
|
|
}
|