No commit activity in last 3 years
No release in over 3 years
Fluent::ExtractJsonFilter is a fluentd plugin extracts single JSON object from record.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.0

Runtime

~> 0.12
>= 0
 Project Readme

fluent-plugin-extract-json

fluent-plugin-extract-json is fluentd filter plugin extracts single JSON object from record.

Build Status

Installation

fluent-gem install fluent-plugin-extract-json

Configure

<filter **>
  @type extract_json
  key jsonkey
</filter>

Example

INPUT:  {"jsonkey" => '{"a":1}', "notjsonkey" => 'ignored'}
CONFIG: key jsonkey
OUTPUT: {"a" => 1}

Development

To test, run below commands.

$ bundle install
$ bundle exec rake

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/neguse/fluent-plugin-extract-json.

License

The gem is available as open source under the terms of the MIT License.