Defined Type: logstash::input::log4j

Defined in:
puppet/modules/logstash/manifests/input/log4j.pp

Overview

Define: logstash::input::log4j

Configure logstash to collect input as a log4j listener

Parameters:

  • $ensure: Whether the config should exist. Default present.

  • $port: port to listen for json input on. Default 12202.

  • $priority: Configuration loading priority. Default undef.

Sample usage:

logstash::input::log4j {
    port => 4560,
}

Parameters:

  • ensure (Any) (defaults to: present)
  • port (Any) (defaults to: 4560)
  • priority (Any) (defaults to: 10)
  • mode (Any) (defaults to: 'server')
  • host (Any) (defaults to: '0.0.0.0')


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

define logstash::input::log4j(
    $ensure   = present,
    $port     = 4560,
    $priority = 10,
    $mode     = 'server',
    $host     = '0.0.0.0',
) {
    logstash::conf { "input_log4j_${title}":
        ensure   => $ensure,
        content  => template('logstash/input/log4j.erb'),
        priority => $priority,
    }
}