1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2025-09-11 16:19:29 +00:00

Implemented <parse>, <storage> etc sections within fluentd::source template

- Changed templates/source.erb to accept Hash elements within 'config'
- Updated source_spec test
- Updated README.md
This commit is contained in:
pilchkinstein-gtv
2018-03-02 22:32:51 +00:00
parent 3c537f0ff5
commit 72e6bcd744
5 changed files with 48 additions and 0 deletions

View File

@@ -5,6 +5,14 @@
'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'
}
}