Defined Type: role::logstash::apifeatureusage::elasticsearch

Defined in:
modules/role/manifests/logstash/apifeatureusage/elasticsearch.pp

Overview

Output API Feature Usage to elasticsearch

This is used to do a pseudo iterator. It might be replaced by a nicer syntax once we are fully Puppet 4 compatible.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/role/manifests/logstash/apifeatureusage/elasticsearch.pp', line 6

define role::logstash::apifeatureusage::elasticsearch {
    logstash::output::elasticsearch { "apifeatureusage-${title}":
        host            => $title,
        index           => 'apifeatureusage-%{+YYYY.MM.dd}',
        prefix          => 'apifeatureusage-',
        guard_condition => '[type] == "api-feature-usage-sanitized"',
        manage_indices  => true,
        priority        => 95,
        template        => '/etc/logstash/apifeatureusage-template.json',
        require         => File['/etc/logstash/apifeatureusage-template.json'],
    }
}