No commit activity in last 3 years
No release in over 3 years
Output Split String Plugin for fluentd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0
>= 0
~> 3.2

Runtime

 Project Readme

Build Status Gem Version

fluent-plugin-split, a plugin for Fluentd

Output Split String Plugin for fluentd

Installation

td-agent(Linux)

/usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-split

td-agent(Mac)

sudo /usr/local/Cellar/td-agent/1.1.XX/bin/fluent-gem install fluent-plugin-split

fluentd only

gem install fluent-plugin-split

parameter

param value
output_tag output tag(require)
output_key output split word key(require)
format csv or tsv or space(default csv)
key_name target key name(require)
keep_keys keep keys comma separator(optional)

Configuration

Example:

<match foo.bar>
  type split
  output_tag split.keyword
  output_key keyword
  format csv
  key_name keywords
  keep_keys site
</match>

Assume following input is coming:

foo.bar {"keywords"=>"keyword1,keyword2,keyword3", "site" => "google", "user_id" => "1"}

then output becomes as below (indented):

split.keyword { "keyword" => "keyword1", "site" => "google"}
split.keyword { "keyword" => "keyword2", "site" => "google"}
split.keyword { "keyword" => "keyword3", "site" => "google"}

ChangeLog

See CHANGELOG.md for details.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2013 Hiroshi Toyama. See LICENSE for details.