The project is in a healthy, maintained state
Force encoding speficic fields
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
 Project Readme

fluent-plugin-force-encoding

Fluentd filter plugin to force encoding specified keys.

Installation

RubyGems

$ gem install fluent-plugin-force-encoding

Bundler

Add following line to your Gemfile:

gem "fluent-plugin-force-encoding"

And then execute:

$ bundle

Configuration

<filter>
  <element>
    key host
    encoding us-ascii
  </element>
</filter>

This will call String#force_encoding(encoding) to the host field's value.

Plugin helpers

Fluent::Plugin::ForceEncodingFilter configuration

<element> section (optional) (multiple)

  • key (string) (required): Specify field name in the record to force encode
  • encoding (string) (required): Encoding name

Copyright

  • Copyright(c) 2020- okkez
  • License
    • Apache License, Version 2.0