Forge Home

logstash

Camptocamp Logstash Module

13,641 downloads

8,732 latest version

4.6 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

  • 99.99.99 (latest)
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.0
  • 0.1.0
released Aug 21st 2015
This version is compatible with:
  • ,
This module has been deprecated by its author since Feb 10th 2021.

The reason given was: No longer maintained

The author has suggested elastic-logstash as its replacement.

Start using this module

Documentation

camptocamp/logstash — version 99.99.99 Aug 21st 2015

Logstash Puppet Module

Puppet Forge Build Status

Warning

This module is not supported anymore by camptocamp. Please use elasticsearch/logstash module instead.

This module is provided by Camptocamp

Usage

Defined type logstash::instance is used to declare one or more logstash agents. The names of these agents doesn't matter. What is really important is the function of each of these agents which consists of specifying inputs, filters, and outputs.

include ::logstash

logstash::instance{'shipper':
  ensure      => present,
  input_file  => 'puppet:///modules/.../shipper-input',
  filter_file => 'puppet:///modules/.../shipper-filter',
  output_file => 'puppet:///modules/.../shipper-output',
  java_opts   => '-Xms512m -Xmx512m',
}

logstash::instance {['indexer-a', 'indexer-b', 'indexer-c']:
  ensure      => present,
  input_file  => 'puppet:///modules/.../indexer-input',
  filter_file => 'puppet:///modules/.../indexer-filter',
  output_file => 'puppet:///modules/.../indexer-output',
  java_opts   => '-Xms1g -Xmx1g',
}

Package

Packages used by this module are simply built with [fpm] (https://github.com/jordansissel/fpm).

Download the all inclusive logstash jar in a basic structure:

mkdir -p logstash-build/usr/share/logstash
curl -o logstash-build/usr/share/logstash/logstash.jar http://semicomplete.com/files/logstash/logstash-1.1.9-flatjar.jar

Run the following command for CentOS/RedHat:

fpm -s dir -t rpm -n logstash -v 1.1.9 -a noarch --iteration 1 --description "Logstash Open Source Log Management" -d "jre >= 1.6.0" -f -C logstash-build .

And this one for Debian/Ubuntu:

fpm -s dir -t deb -n logstash -v 1.1.9 -a all --iteration 1 --description "Logstash Open Source Log Management" -d "java6-runtime" -f -C logstash-build .

Contributing

Please report bugs and feature request using GitHub issue tracker.

For pull requests, it is very much appreciated to check your Puppet manifest with puppet-lint to follow the recommended Puppet style guidelines from the Puppet Labs style guide.

License

Copyright (c) 2013 puppet@camptocamp.com All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.