Giter Club home page Giter Club logo

redis-sniffer's Introduction

Jesse's GitHub stats Top Langs

redis-sniffer's People

Contributors

jplesperance avatar pyup-bot avatar sronderos-atlassian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

redis-sniffer's Issues

allow logging of individual events

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.

Add a debug option

Add a debug option for a higher level of logging in case of issues or for raw packet output

Filter out garbage

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

UnicodeDecodeError

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.