# memcached-sniffer **Repository Path**: mirrors_criteo/memcached-sniffer ## Basic Information - **Project Name**: memcached-sniffer - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-16 - **Last Updated**: 2025-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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