fluent-plugin-key-picker, a plugin for Fluentd
KeyPickerOutput
Take a record and pick only the keys you want to pass
<match test.**>
type key_picker
keys foo, baz
add_tag_prefix picked.
</match>
And you feed such a value into fluentd:
"test" => {
"foo" => "a",
"bar" => "b",
"baz" => "c",
"bah" => "e",
}
Then you'll get re-emmited tags/records like so:
"picked.test" => {
"foo" => "a",
"baz" => "c"
}
keys
should include the keys you want to pick.
These params are included from Fluent::HandleTagNameMixin
. See the code for details.
You must add at least one of these params.
Add this line to your application's Gemfile:
gem 'fluent-plugin-key-picker'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-key-picker
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2014- Carlos Donderis (@CaDs)
Apache License, Version 2.0