Forge Home

logstash

Module for managing logstash

13,239 downloads

10,725 latest version

3.4 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

  • 0.1.6 (latest)
  • 0.1.5
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.0
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Dec 2nd 2012

Start using this module

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

Add this module to your Puppetfile:

mod 'garethr-logstash', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add garethr-logstash
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install garethr-logstash --version 0.0.1

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

garethr/logstash — version 0.0.1 Dec 2nd 2012

A puppet module for managing logstash indexers and shippers

Build Status

Adding a better way to change configuration should be added.

Tested on Ubuntu 12.04 Precise but should work elsewhere.

Usage

Logstash indexer

To install the logstash indexer on a node, add the following to your node manifest:

node 'node01.example.org' {
  class { 'logstash':}
  class { 'logstash::indexer':
    require => Class['logstash'],
  }
}

With parameters:

node 'node01.example.org' {
  class { 'logstash':
    $logstash_version = '1.1.5',
  }
  class { 'logstash::indexer':
    require => Class['logstash'],
  }
}

Logstash shipper

To install the logstash shipper on a node, add the following to your node manifest:

node 'node01.example.org' {
  class { 'logstash':}
  class { 'logstash::shipper':
    require => Class['logstash'],
  }
}

With parameters:

node 'node01.example.org' {
  class { 'logstash':
    $logstash_version = '1.1.5',
  }
  class { 'logstash::shipper':
    require => Class['logstash'],
  }

}

Dependencies

This module currently has a hard coded configuration for demonstration purposes. It requires Redis which could be installed via this module. The configuration takes input from syslog and saves it to files in /var/log/logstash.

Credit

This module is heavily based on work from puppet-logstash