fluent-plugin-add, a plugin for Fluentd
![Build Status](https://camo.githubusercontent.com/008f8761abf148fe17d453887cc6b5680c9f1afa5542d066474bd8e084754588/68747470733a2f2f7472617669732d63692e6f72672f79752d79616d6164612f666c75656e742d706c7567696e2d6164642e7376673f6272616e63683d6d6173746572)
![Gem Version](https://camo.githubusercontent.com/6eb8d5ffa249d9f1c1e4f97ceff058c670a844968c56fb541a0939321d0eca6a/68747470733a2f2f62616467652e667572792e696f2f72622f666c75656e742d706c7567696e2d6164642e737667)
Installation
gem install fluent-plugin-add
Configration
AddOutput
<match test.**>
@type add
add_tag_prefix debug
uuid true # optional
<pair>
hoge moge
hogehoge mogemoge
</pair>
</match>
Assuming following inputs are coming:
then output becomes as belows
debug.test.aa: {"json":"dayo", "hoge":"moge","hogehoge":"mogemoge","uuid":"427037E7-235B-4F6C-9975-15AAC75E56C5"}
AddFilter
<filter test.**>
@type add
uuid true # optional
<pair>
hoge moge
hogehoge mogemoge
</pair>
</filter>
Assuming following inputs are coming:
then output bocomes as belows
debug.test.aa: {"json":"dayo", "hoge":"moge","hogehoge":"mogemoge","uuid":"427037E7-235B-4F6C-9975-15AAC75E56C5"}
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
)
- Commit your changes (
git commit -am 'Add some feature'
)
- Push to the branch (
git push origin my-new-feature
)
- Create new Pull Request
Copyright
Copyright (c) 2013 yu-yamada