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',
},
],
}
|