jplesperance / redis-sniffer Goto Github PK
View Code? Open in Web Editor NEWA Redis event sniffer and logging utility.
Home Page: http://www.eternalprojects.com/redis-sniffer
License: MIT License
A Redis event sniffer and logging utility.
Home Page: http://www.eternalprojects.com/redis-sniffer
License: MIT License
I want to use the logging module to handle writing events and output to the log files.
There needs to be a command line option that allows for event logging to be broken up into separate files based on event.
Example: setex_event_sniff, delete_event_sniff
Should also allow an option to define the appended portion of the log name.
Currently only ingress traffic is captured and logged which restricts the operation of Redis Sniffer to be restricted to being on the redis server only.
Need to add an option that allows logging of only specified event types(KEYS,SETEX, etc.)
Add a debug option for a higher level of logging in case of issues or for raw packet output
Running this in production does indicate that redis events created from internal LUA scripts are nor properly recognized.
I will have to examine the TCP Dump data more to determine the best way to identify and store LUA based events so they can also be replayed to a server since they "can" make up a significant source for redis traffic in some environments
I run it as
sudo redis-sniffer -p 6379 -i eth1
Result:
Traceback (most recent call last):
File "/usr/bin/redis-sniffer", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.6/site-packages/redis_sniffer/main.py", line 38, in main
logger.write_log(fmt_full % (ptime, client, req_size, resp_size, command))
File "/usr/lib/python2.6/site-packages/redis_sniffer/log.py", line 29, in write_log
self.full_log.write(unicode(log))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xde in position 85: ordinal not in range(128)
Whether it support CJK characters?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.