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',
}
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,
}
}
|