File: test3.pp

package info (click to toggle)
puppet-module-jhbigler-vector 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 388 kB
  • sloc: ruby: 511; sh: 67; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
1
2
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
class { 'vector':
  manage_user => true,
  version     => '0.30.0',
}

vector::configfile { 'config':
  data   => {
    sources => {
      'file' => {
        'type'       => 'file',
        'parameters' => {
          'include' => ['/var/log/**/*.log'],
        },
      },
    },
    sinks   => {
      'output_file' => {
        'format'     => 'yml',
        'type'       => 'file',
        'inputs'     => ['*'],
        'parameters' => {
          'path'     => '/tmp/vector-%Y-%m-%d.log',
          'encoding' => {
            'codec' => 'json',
          },
        },
      },
    },
  },
}