fluent-plugin-eval-filter, a plugin for Fluentd

Installation
Add this line to your application's Gemfile:
gem 'fluent-plugin-eval-filter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-eval-filter
Usage
<match raw.apache.access>
type eval_filter
remove_tag_prefix raw
add_tag_prefix filtered
config1 @hostname = `hostname -s`.chomp
filter1 [[tag, @hostname].join('.'), time, record] if record['method'] == 'GET'
</match>
Limitation
Can not be used expression substitution.
<match raw.apache.access>
filter1 "#{tag}"
</match>
'#' Is interpreted as the beginning of a comment.
filter1 #=> "\""
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