https://github.com/erebe/memcached_sniffer
Utility tool to inspect memcached binary protocol
https://github.com/erebe/memcached_sniffer
Last synced: about 1 year ago
JSON representation
Utility tool to inspect memcached binary protocol
- Host: GitHub
- URL: https://github.com/erebe/memcached_sniffer
- Owner: erebe
- Created: 2019-07-16T14:28:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T14:02:03.000Z (over 6 years ago)
- Last Synced: 2025-03-29T06:54:00.449Z (about 1 year ago)
- Language: C++
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Purpose
This app sniff memcached binary traffic in order filter certains kind of informations (keys, commands, ttls, errors)
It also offer the possibility to forward store commands to an other memcached instance (still in binary format)
# How to build
- docker build -t memcache_sniffer .
- docker run --rm -ti -v (pwd):/data memcache_sniffer cp memcache_sniffer /data
- sudo setcap cap_net_raw,cap_net_admin=eip ./memcache_sniffer
# How to start
- docker run --rm --net=host --cap-add cap_net_admin -ti memcached_sniffer ./memcache_sniffer xxx
# How to use
SYNOPSIS
memcache_sniffer sniff -i -p -f [-s ] [-v]
memcache_sniffer forward -i -p -d [-n ] [-v]
memcache_sniffer exporter -i -p -l [-v]
memcache_sniffer help
OPTIONS
-i, --interface
Interface name to sniff packets on
-p, --port Port on which memcached instance is listening
-f, --filter
Filter memcached packets based on {key, error, ttl, command}
-s, --stats Display stats every x packets instead of streaming
-v, --verbose
verbose mode
-i, --interface
interface name to sniff packets on
-p, --port port on which memcached instance is listening
-d, --destination
Remote memcached that will receive the SETs requests
-n, --connections
Number of remote connections to open
-v, --verbose
verbose mode
-i, --interface
interface name to sniff packets on
-p, --port port on which memcached instance is listening
-l, --listen
port on which prometheus endpoint is listening on
-v, --verbose
verbose mode