## About
This tool will monitor a specific port and interface for redis traffic and captures the commands being sent to Redis and/or formatted full TCP dump data. This can be used for analysis for debugging or for replaying the transactions as a way of doing real load/performance testing.
Redis Hound must be run locally on a Redis server or a server that is sending commands to Redis.
## Installation
Installing from the Eternal Projects Apt repo is the preferred method of installation since it handles installing all the needed dependencies.
Once Redis Sniffer is installed, you will have the executable at /usr/local/bin/redis-sniffer
### Install from Apt
1. Get the key for the repo
```bash
wget -O - http://apt.eternalprojects.com/conf/apt.eternalprojects.com.gpg.key|apt-key add -
```
2. Add the Repo to /etc/apt/sources.list
```bash
deb http://apt.eternalprojects.com/ stable main
```
3. Install the package
```bash
sudo apt-get update
sudo apt-get install -y redis-sniffer
```
### Install from Pypi
```bash
sudo apt-get -y libpcap-dev python-dev
sudo pip install pypcap
sudo pip install dpkt
sudo pip install redis-sniffer
```
### Get the source and install
```bash
sudo apt-get -y install libpcap-dev python-dev
git clone https://github.com/eternalprojects/redis-sniffer.git
cd redis-sniffer
sudo python setup.py install
sudo python setup.py install --user
```
## Usage
**Please Note: Redis Sniffer must be run as root/sudo since it has to bind to a network interface which is not allowed by non-privileged users.**
```bash
sudo redis-sniffer -i <interface> -p <port>
sudo redis-sniffer -i bond0 -p 6379 -f setex,select,del
```
Additional Options:
```bash
-l {event,full,both} - logging type
--out - location to write logs
--event-log - name of the event log
--full-log - name of the full log
-f, --filter - specify a comma seperated list of redis commands to log
```
Metadata
Release files for redis-sniffer 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| redis-sniffer_1.1.0.tgz | 66.1 kB | Without provenance | Details for redis-sniffer_1.1.0.tgz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| redis_sniffer-1.1.0-1-py2.7.egg | Legacy Egg format | - | - | Details for redis_sniffer-1.1.0-1-py2.7.egg |
| redis_sniffer-1.1.0-1-py2-none-any.whl | Python 2 | none | any | Details for redis_sniffer-1.1.0-1-py2-none-any.whl |
Total release size: 83.2 kB
Release files / redis-sniffer_1.1.0.tgz
| Download URL | redis-sniffer_1.1.0.tgz |
|---|---|
| Size | 66.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a34df691bbf50bee2125636339f4885dfd61f9e4a4dbe9f0ddbfe37d4a30f394
|
|
BLAKE2b-256 checksum How to use checksums |
adc16bac484e61aaf1dfefd414692ce7ec273b6276682ccd93e5618966691b9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / redis_sniffer-1.1.0-1-py2.7.egg
| Download URL | redis_sniffer-1.1.0-1-py2.7.egg |
|---|---|
| Size | 9.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
7ac8ad21f09641b3e222fa1ccaf1a2573aa18b39cc1b6a530e58508c94f455d0
|
|
BLAKE2b-256 checksum How to use checksums |
043f23f396a33f6a0798b609c3e5fb098e9dd32e61a4078eda9359e75eea2b12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / redis_sniffer-1.1.0-1-py2-none-any.whl
| Download URL | redis_sniffer-1.1.0-1-py2-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
fc99a779da1d386330d2af529afb0da430013c4862fc0fb6a2afdf66a550f882
|
|
BLAKE2b-256 checksum How to use checksums |
36a25dd307c768ce882d19cf3fabe9d9b9385867db14620837bf4f9c9342d046
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for redis-sniffer 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.