Defined Type: logstash::input::syslog

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

Overview

Define: logstash::input::syslog

Configure logstash to collect input as a syslog listener.

Parameters:

  • $ensure: Whether the config should exist.

  • $port: port to listen for syslog input on

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

  • $plugin_id: Name associated with Logstash metrics

Sample usage:

logstash::input::syslog { 'syslog':
    port => 514,
 }

Parameters:

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


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

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