1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-10 04:50:34 +00:00
puppet-fluentd/examples/source.pp

19 lines
434 B
ObjectPascal
Raw Normal View History

2015-12-07 12:23:41 +00:00
# configure source
::fluentd::source { 'test':
priority => 10,
config => {
2018-03-02 23:22:13 +00:00
'type' => 'tail',
'format' => 'json',
'path' => '/var/log/test-application/*.json',
'parse' => {
'type' => 'regexp',
'expression' => '^(?<name>[^ ]*) (?<user>[^ ]*) (?<age>\d*)$'
},
2018-03-02 23:22:13 +00:00
'storage' => {
'type' => 'local',
'path' => 'test.pos'
},
2018-03-02 23:22:13 +00:00
'tag' => 'application.test'
2015-12-07 12:23:41 +00:00
}
}