Defined Type: logstash::input::json
- Defined in:
- puppet/modules/logstash/manifests/input/json.pp
Overview
Define: logstash::input::json
Configure logstash to collect input as a json 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::json {
port => 12202,
}
18 19 20 21 22 23 24 25 26 27 28 |
# File 'puppet/modules/logstash/manifests/input/json.pp', line 18
define logstash::input::json(
$ensure = present,
$port = 12202,
$priority = undef,
) {
logstash::conf { "input_json_${title}":
ensure => $ensure,
content => template('logstash/input/json.erb'),
priority => $priority,
}
}
|