Defined Type: logstash::patternfile
- Defined in:
- manifests/patternfile.pp
Overview
This type represents a Grok pattern file for Logstash.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'manifests/patternfile.pp', line 22
define logstash::patternfile (
Pattern[/^(puppet|file):\/\//] $source = undef,
Optional[String[1]] $filename = undef,
) {
require logstash::config
$destination = pick($filename, basename($source))
file { "${logstash::config_dir}/patterns/${destination}":
ensure => file,
source => $source,
owner => 'root',
group => $logstash::logstash_group,
mode => '0640',
tag => ['logstash_config'],
}
}
|