base/protocols/redis/main.zeek
- Redis
- Namespace:
Redis
- Imports:
base/frameworks/signatures, base/protocols/conn/removal-hooks.zeek, base/protocols/redis/spicy-events.zeek
Summary
Runtime Options
Redefinable Options
The ports to register Redis for. |
State Variables
Types
Record type containing the column fields of the Redis log. |
|
Which numbered commands should not expect a reply due to CLIENT REPLY commands. |
|
Redefinitions
Log stream identifier. |
|
|
Hooks
A default logging policy hook for the stream. |
Detailed Interface
Runtime Options
Redefinable Options
- Redis::ports
-
The ports to register Redis for.
State Variables
- Redis::enter_subscribed_mode
- Type:
- Default:
{ Redis::RedisCommand_PSUBSCRIBE, Redis::RedisCommand_SSUBSCRIBE, Redis::RedisCommand_SUBSCRIBE }
- Redis::exit_subscribed_mode
- Type:
- Default:
{ Redis::RedisCommand_RESET, Redis::RedisCommand_QUIT }
- Redis::no_response_commands
- Type:
- Default:
{ Redis::RedisCommand_SSUBSCRIBE, Redis::RedisCommand_SUBSCRIBE, Redis::RedisCommand_PUNSUBSCRIBE, Redis::RedisCommand_SUNSUBSCRIBE, Redis::RedisCommand_UNSUBSCRIBE, Redis::RedisCommand_PSUBSCRIBE }
Types
- Redis::Info
- Type:
- Fields:
-
-
cmd:
Redis::Command&log The Redis command.
-
reply:
Redis::ReplyData&log&optional The reply for the command.
-
cmd:
Record type containing the column fields of the Redis log.
- Redis::NoReplyRange
-
Which numbered commands should not expect a reply due to CLIENT REPLY commands. These commands may simply skip one, or they may turn off replies then later reenable them. Thus, the end of the interval is optional.
- Redis::State
- Type:
- Fields:
-
pending:
table[count] ofRedis::Info Pending commands.
-
no_reply_ranges:
vectorofRedis::NoReplyRange Ranges where we do not expect a reply due to CLIENT REPLY commands. Each range is one or two elements, one meaning it’s unbounded, two meaning it begins at one and ends at the second.
-
skip_commands:
set[count] The command indexes (from current_command and current_reply) that will not get responses no matter what.
-
violation:
bool&default=F&optional We store if this analyzer had a violation to avoid logging if so. This should not be super necessary, but worth a shot.
-
resp_version:
Redis::RESPVersion&default=Redis::RESP2&optional The RESP version
-
pending:
Hooks
- Redis::log_policy
- Type:
A default logging policy hook for the stream.