mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-09-19 20:20:35 +00:00
72e6bcd744
- Changed templates/source.erb to accept Hash elements within 'config' - Updated source_spec test - Updated README.md
19 lines
428 B
Puppet
19 lines
428 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'
|
|
}
|
|
}
|