Defined Type: splunk::input::monitor
- Defined in:
- manifests/input/monitor.pp
Overview
Define splunk::input::monitor
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/input/monitor.pp', line 3
define splunk::input::monitor ( $path,
$host = undef,
$index = undef,
$source = undef,
$sourcetype = undef,
$queue = undef,
$host_regex = undef,
$host_segment = undef,
$whitelist = undef,
$blacklist = undef,
$crcSalt = undef,
$initCrcLength = undef,
$ignoreOlderThan = undef,
$followTail = undef,
$alwaysOpenFile = undef,
$time_before_close = undef,
$recursive = undef,
$followSymlink = undef
) {
include splunk
if ! defined(Concat['inputs.conf']) {
concat { 'inputs.conf':
path => "${splunk::basedir}/etc/system/local/inputs.conf",
notify => Service['splunk']
}
}
concat::fragment { "monitor-${title}":
target => 'inputs.conf',
content => template( 'splunk/input/monitor.erb' )
}
}
|