File: tail.pp

package info (click to toggle)
puppet-module-voxpupuli-collectd 11.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid
  • size: 2,308 kB
  • sloc: ruby: 8,119; python: 30; sh: 10; makefile: 4
file content (33 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (2)
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
31
32
33
include collectd

collectd::plugin::tail::file { 'exim-log':
  filename => '/var/log/exim4/mainlog',
  instance => 'exim',
  matches  => [
    {
      'regex'    => 'S=([1-9][0-9]*)',
      'dstype'   => 'CounterAdd',
      'type'     => 'ipt_bytes',
      'instance' => 'total',
    },
    {
      'regex'    => '\\<R=local_user\\>',
      'dstype'   => 'CounterInc',
      'type'     => 'counter',
      'instance' => 'local_user',
    },
  ],
}

collectd::plugin::tail::file { 'auth-log':
  filename => '/var/log/auth.log',
  instance => 'auth',
  matches  => [
    {
      'regex'    => '\\<sshd[^:]*: Accepted publickey for [^ ]+ from\\>',
      'dstype'   => 'CounterInc',
      'type'     => 'counter',
      'instance' => 'auth-publickey',
    },
  ],
}