Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin Add redis_log_pipe executable
man
pages @ 9d5bd1c
.gitmodules
LICENSE
README.md
Rakefile

README.md

redis_log_pipe(1) -- Pipe log lines from STDIN to redis

DESCRIPTION

redis_log_pipe takes log lines on STDIN and pipes them to redis.

It connects to a redis server located at REDIS_LOG_HOST (default: 127.0.0.1:6379).

It LPUSHes them to a LIST called "key". It trims the list to RETENTION (default: 250) using LTRIM. It also PUBLISHes them to a channel called "channels.key".

ARGUMENTS

  • key: The redis key to use for the list.

    By convention, the log will be published to a channel named channels.key as well.

ENVIRONMENT VARIABLES

  • REDIS_LOG_HOST: [password@]host:port

    The redis password, host and port. Password optional.
    Default: 127.0.0.1:6379

  • RETENTION: Number of log lines to retain in the list for tailing.
    Default: 250

CAVEATS

  • requires a bash with /dev/tcp enabled.

LICENSE

MIT. See LICENSE

SOURCE

Source available at http://github.com/reinh/redis_log_pipe.

COPYRIGHT

redis_log_pipe is Copyright (C) 2011 Rein Henrichs http://reinh.com

AUTHORS

Something went wrong with that request. Please try again.