I need to see what redis gets/sets in the redis log.
I tried to set the redis log level to debug and verbose.
This does not show me anything when I set a value.
Unless it's important that you get in the log, in which case I don't think I can help you, you should be able to use the MONITOR command:
MONITOR is a debugging command that streams back every command processed by the Redis server. It can help in understanding what is happening to the database. This command can both be used via redis-cli and via telnet.
You could do something like:
redis-cli monitor | grep -E ' "(g|s)et" '
Note that there is a performance cost, though (it's mentioned in the linked docs as roughly 50%).
Pipe it to a file:
redis-cli monitor | grep -E ' "(g|s)et" ' > redis_get_set.log
I used redis-cli monitor > redis.log
and that works just fine for me, better than console.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With