nicholasklem / evenup-beaver

Installs, configures, and runs the beaver service to ship logfile to logstash.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is it?

Puppet module install and configure beaver for shipping logs to logstash. Currently only redis is supported as the transport, but it would be easy to support additional transports.

Note: Beaver 29 or greater is now required because of the switch to conf.d style config

Usage:

You an install the module by just defining a logfile you'd like to ship if the beaver defaults work for you or if you are using puppet >= 3.0 with hiera:

  beaver::stanza { '/var/log/messages':
    type    => 'syslog',
    tags    => ['messages', 'prod'],
  }

If beaver configuration is required, just specify it in the class:

  class { 'beaver':
    redis_host      => 'logstash.example.org',
    redis_namespace => 'logstash::prod'
  }

TODO:

[] Support additional transports [] Support adding environment fields

License:

Released under the Apache 2.0 licence

Contribute:

  • Fork it
  • Create a topic branch
  • Improve/fix (with spec tests)
  • Push new topic branch
  • Submit a PR

About

Installs, configures, and runs the beaver service to ship logfile to logstash.

License:Other


Languages

Language:Puppet 44.6%Language:Ruby 27.8%Language:Shell 18.7%Language:HTML 9.0%