Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/fluent/plugin
test
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
fluent-plugin-flatten-hash.gemspec

README.md

Fluent::Plugin::Flatten::Hash

Synopsis

Imagin you have a config as below:

<match nested.**>
  type           flatten_hash
  add_tag_prefix flattend.
</match>

And you feed such a value into fluentd:

"nested" => {
  "foo"  => {"bar" => {"qux" => "quux", "hoe" => "poe" }, "baz" => "bazz" },
  "hoge" => "fuga"
}

Then you'll get re-emmited tag/record-s below:

"flattend.nested" => { "foo.bar.qux" => "quux", "foo.bar.hoe" => "poe", "foo.baz" => "bazz", "hoge" => "fuga" }
Something went wrong with that request. Please try again.