A simple utility to watch redis activity in real-time using psubscribe build using:
First we need to make sure we have all the appropriate libraries.
Please consult this chart for help with installing the required packages.
If your OS is not listed, please help us fill out the table, or submit a request via github.
OS | Commands (as root) |
---|---|
Alpine | apk add build-base hiredis-dev libevent-dev |
CentOS | yum install -y epel-release; yum install -y gcc hiredis-devel libevent-devel |
Debian | apt update; apt install -y build-essential libhiredis-dev libevent-dev |
Fedora | yum install -y gcc hiredis-devel libevent-devel |
Ubuntu | apt update; apt install -y build-essential libhiredis-dev libevent-dev |
./compile.sh
This will print generic output regarding each redis event on the redis instance @ 127.0.0.1:6379.
./printall.dbg 127.0.0.1 6379
To select another DB:
./printall.dbg 127.0.0.1 6379 1
This will print more processed output regarding specific redis events on the redis instance @ 127.0.0.1:6379.
./events.dbg 172.17.0.1 6379
To select another DB:
./events.dbg 127.0.0.1 6379 1