mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
spicy-redis: Add synchronization and pipeline support
Also adds some command support
This commit is contained in:
parent
4210e62e57
commit
97d26a689d
35 changed files with 2469 additions and 108 deletions
15
testing/btest/scripts/base/protocols/redis/django-cloud.zeek
Normal file
15
testing/btest/scripts/base/protocols/redis/django-cloud.zeek
Normal file
|
@ -0,0 +1,15 @@
|
|||
# @TEST-DOC: Test Redis traffic from a django app using Redis (in the cloud) as a cache
|
||||
#
|
||||
# @TEST-EXEC: zeek -Cr $TRACES/redis/django-cloud.trace base/protocols/redis %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
# @TEST-EXEC: btest-diff resp.log
|
||||
|
||||
redef RESP::ports += {
|
||||
10625/tcp,
|
||||
};
|
||||
|
||||
event RESP::set_command(c: connection, is_orig: bool, command: RESP::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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue