Fluentd filter plugin to do parse json strings.
This Gem is a Fluentd plugin filter that helps to manage text logs. When enabled, it's main functionality is to check and convert quoted JSON log messages into real JSON format.
$ gem install specific_install
$ gem specific_install https://github.com/kumarappan-arumugam/fluent-plugin-json-string-parser.gitAdd following line to your Gemfile:
gem 'fluent-plugin-json-string-parser', github: 'kumarappan-arumugam/fluent-plugin-json-string-parser'And then execute:
$ bundle
- See also: Filter Plugin Overview
Specify field name in the record to parse.
In your Fluentd configuration file, the plugin filter can be used as follows:
<source>
type forward
port 24224
bind 0.0.0.0
</source>
<filter xyz.**>
@type json_string_parser
key_name message
</filter>
<match **>
type stdout
</match>
- Copyright(c) 2019- kumarappan-arumugam
- License
- Apache License, Version 2.0