Beaver

Python daemon that munches on logs and sends their contents to logstash
Download

Beaver Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Jose Diaz-Gonzalez
  • Publisher web site:
  • http://github.com/josegonzalez/

Beaver Tags


Beaver Description

Beaver is a Python daemon that munches on logs and sends their contents to logstash.InstallationUsing PIP:From Github:pip install git+git://github.com/josegonzalez/beaver.git#egg=beaverFrom PyPI:pip install beaver==1Usageusage:beaver ] optional arguments:-h, --help show this help message and exit-r {worker,interactive}, --run {worker,interactive} run worker or interactive mode-m {bind,connect}, --mode {bind,connect} bind or connect mode-p PATH, --path PATH path to log files-f FILES , --files FILES space-separated filelist to watch. Overrides --path argument-t {amqp,redis,stdout}, --transport {amqp,redis,stdout} log transport methodBackgroundBeaver provides an lightweight method for shipping local log files to Logstash. It does this using either redis, stdin, zeromq as the transport. This means you'll need a redis, stdin, zeromq input somewhere down the road to get the events.Events are sent in logstash's json_event format. Options can also be set as environment variables.ExamplesExample 1: Listen to all files in the default path of /var/log on standard out:beaverExample 2: Sending logs from /var/log files to a redis list:REDIS_URL="redis://localhost:6379/0" beaver -t redisExample 3: Use environment variables to send logs from /var/log files to a redis list:REDIS_URL="redis://localhost:6379/0" BEAVER_PATH="/var/log" BEAVER_TRANSPORT=redis beaverExample 4: Zeromq listening on port 5556 (all interfaces):ZEROMQ_ADDRESS="tcp://*:5556" beaver -m bind# logstash config:input { zeromq { type => 'shipper-input' mode => 'client' topology => 'pushpull' address => 'tcp://shipperhost:5556' } }output { stdout { debug => true } }Example 5: Zeromq connecting to remote port 5556 on indexer:ZEROMQ_ADDRESS="tcp://indexer:5556" beaver -m connect# logstash config:input { zeromq { type => 'shipper-input' mode => 'server' topology => 'pushpull' address => 'tcp://*:5556' }}output { stdout { debug => true } }Product's homepage


Beaver Related Software