Socket
Socket
Sign inDemoInstall

bunyan-redis-watch

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunyan-redis-watch

Watch a bunyan log stream in redis


Version published
Maintainers
1
Created
Source

bunyan-redis-watch

This is a simple commandline tool which allows you to watch bunyan streams saved to redis (via bunyan-redis).

You must have bunyan installed globally, since the tool uses bunyan to parse the JSON log.

Install globally via npm:

npm install -g bunyan
npm install -g bunyan-redis-watch

Now you can run the commandline tool.

bunyan-redis --key=<key>
bunayn-redis --key=<key> --port=<port> --host=<host>
bunyan-redis --key=<key> --port=<port> --host=<host> --password=<password>

Internals

The tool uses the redis MONITOR command to observe all redis traffic, and filters for LPUSH commands on the given key. Using the MONITOR command impacts performance significantly, according to the redis docs, each MONITOR client can reduce throughput by more than 50%.

Therefore, it is recommended that you only use this tool for debugging, since it will have a significant impact on the performance of your REDIS infrastructure.

In addition, in order to not replicate the infrastructure in bunyan for printings messages, it uses the bunyan CLI tool to print messages.

Keywords

FAQs

Package last updated on 16 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc