Defined Type: logstash::input::gelf

Defined in:
modules/logstash/manifests/input/gelf.pp

Overview

Define: logstash::input::gelf

Configure logstash to collect input as a gelf (graylog) listener.

Parameters:

  • $port: port to listen for gelf input on

  • $priority: Configuration loading priority. Default '10'.

  • $ensure: Whether the config should exist.

  • $plugin_id: Name associated with Logstash metrics

Sample usage:

logstash::input::gelf {
    port => 12201,
}

Parameters:

  • ensure (Any) (defaults to: present)
  • port (Any) (defaults to: 12201)
  • priority (Any) (defaults to: 10)
  • plugin_id (Any) (defaults to: "input/gelf/${port}")
  • tags (Any) (defaults to: undef)


19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'modules/logstash/manifests/input/gelf.pp', line 19

define logstash::input::gelf(
    $ensure    = present,
    $port      = 12201,
    $priority  = 10,
    $plugin_id = "input/gelf/${port}",
    $tags      = undef,
) {
    logstash::conf { "input-gelf-${title}":
        ensure   => $ensure,
        content  => template('logstash/input/gelf.erb'),
        priority => $priority,
    }
}