Redis’s client list will give you the last command issued by client. It does not give you the key that last command was issued on. What I would like to get is the list key a client is doing BLPOP
on.
Is there a way to get this?
Although it would be nice to have that kind introspective functionality, it does not exist in Redis ATM. Instead you can try catching the command in-flight to understand what your client is doing.
The straightforward manner to do that is running MONITOR
(from a different connection) before the client issues the BLPOP
command to get that information. Note that MONITOR
carries a performance impact so you should refrain from doing it in production.
MONITOR
also reports about admin commands (with passwords redacted, mostly)
Commented
Dec 4, 2021 at 13:34