Forge Home

beaver

Manages the beaver package, service and configuration to ship logfiles to logstash

35,338 downloads

25,382 latest version

4.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.5.0 (latest)
  • 1.4.0
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 0.0.2
  • 0.0.1
released Dec 1st 2015
This version is compatible with:
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'evenup-beaver', '1.5.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add evenup-beaver
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install evenup-beaver --version 1.5.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

evenup/beaver — version 1.5.0 Dec 1st 2015

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.

Example configuration with manifests

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

Example configuration with hiera

+Here it is assumed that the classes are loaded from hiera automatically (more info on puppetlabs).

---
classes:
  - beaver
  - beaver::stanzas
  
beaver::stanzas:
  /var/log/messages:
     type: 'tomcat'
     tags:
      - 'messages'
      - 'prod'

beaver::redis_host: 'redis-host.domain'
beaver::redis_namespace: 'logstash'
beaver::logstash_version: '1'

TODO:
-----
[] Support additional transports
[] Support adding environment fields
[] Add init file for Ubuntu systems

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