logstash_reporter
Report processor that sends logs and metrics as json_events to Logstash
Version information
released Aug 14th 2013
Start using this module
Add this module to your Puppetfile:
mod 'evenup-logstash_reporter', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
evenup/logstash_reporter — version 0.1.0 Aug 14th 2013
evenup-logstash_report
Description
A Puppet report handler for sending logs, event and metrics to a Logstash TCP input.
Requirements
json
yaml
A working logstash install with a defined tcp
input matching the report configuration.
input { tcp { type => "puppet-report" port => "5959" } }
NOTE
- Create a simple Logstash config like so (called logstash.conf):
input { tcp { type => "puppet-report" port => "5959" format => "json_event" } }
output { stdout { debug => true debug_format => "json" } }
- run logstash with the configuration file
java -jar build/logstash-<version>-flatjar.jar agent -f logstash.conf
-
Follow the installation instructions below, changing host to the host where logstash is running and port to match the port you defined in your Logstash configuration file.
-
Profit?
Installation and Usage
- Define a TCP input as described above in your Logstash configuration file
- Copy the
logstash.yaml
to/etc/puppet
- Enable pluginsync and reports on your puppetmaster and clients in
puppet.conf
[master]
report = true
reports = logstash
pluginsync = true
[agent]
report = true
pluginsync = true
- Run the Puppet client and sync the report as a plugin
Credits
This module was originally posted John Vincent at https://github.com/lusis/puppet-logstash-reporter
v0.1.0: Reporter works Added spec tests Added class to deploy config file Forked from lusis (?abandoned?)
Copyright 2013 EvenUp Inc 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.