mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-09 20:50:34 +00:00
19 lines
434 B
Puppet
19 lines
434 B
Puppet
# configure source
|
|
::fluentd::source { 'test':
|
|
priority => 10,
|
|
config => {
|
|
'type' => 'tail',
|
|
'format' => 'json',
|
|
'path' => '/var/log/test-application/*.json',
|
|
'parse' => {
|
|
'type' => 'regexp',
|
|
'expression' => '^(?<name>[^ ]*) (?<user>[^ ]*) (?<age>\d*)$'
|
|
},
|
|
'storage' => {
|
|
'type' => 'local',
|
|
'path' => 'test.pos'
|
|
},
|
|
'tag' => 'application.test'
|
|
}
|
|
}
|