redispump_factual
pump stdout to redis
Last updated 7 years ago by ainsleychong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install redispump_factual -g
SYNC missed versions from official npm registry.

redispump

A command line tool to pump arbitrary data to a redis pubsub channel.


$ tail -f /var/log/nginx/error.log | redispump -c channelname
$ tail -f /var/log/nginx/error.log | redispump -c channelname -a localhost:6379
$ tail -f /var/log/nginx/error.log | redispump -c channelname -a localhost:6379 --mimetype text/plain

Installation


$ npm install -g redispump
# yay, you're done

CLI

-c [channelname]

--channel [channelname]

Required. The name of the channel to publish to.

-a [host:port]

--addr [host:port]

--address [host:port]

The host and port of the redis server to publish to.

-m [mimetype]

--mimetype [mimetype]

The mimetype to use when parsing incoming data.

Available mimetypes are:

  • text/plain: Publishes each line in a file to redis.
  • application/json: Publishes each top level item in JSON output to redis.

LICENSE

MIT

Current Tags

  • 0.0.1                                ...           latest (7 years ago)

1 Versions

  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |