Defined Type: logstash::input::redis

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

Overview

Define: logstash::input::redis

Configure logstash to collect input from a Redis server

Parameters:

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

  • $host: Redis server to contact. Default 127.0.0.1

  • $port: Redis server port. Default 6379

  • $data_type: Type of communication: 'list', 'channel', 'pattern_channel'.

    Default 'list'
    
  • $key: Name of a redis list or channel. Default 'logstash'

  • $password: Password to authenticate with. Default undef.

  • $priority: Configuration loading priority. Default undef.

Sample usage:

logstash::inputs::redis { 'redis':
    host => '127.0.0.1',
    key  => 'logstash',
}

Parameters:

  • ensure (Any) (defaults to: present)
  • host (Any) (defaults to: '127.0.0.1')
  • port (Any) (defaults to: 6379)
  • data_type (Any) (defaults to: 'list')
  • key (Any) (defaults to: 'logstash')
  • password (Any) (defaults to: undef)
  • priority (Any) (defaults to: undef)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'puppet/modules/logstash/manifests/input/redis.pp', line 24

define logstash::input::redis(
    $ensure     = present,
    $host       = '127.0.0.1',
    $port       = 6379,
    $data_type  = 'list',
    $key        = 'logstash',
    $password   = undef,
    $priority   = undef,
) {
    logstash::conf { "input_redis_${title}":
        ensure   => $ensure,
        content  => template('logstash/input/redis.erb'),
        priority => $priority,
    }
}