No commit activity in last 3 years
No release in over 3 years
Force encoding speficic fields
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3.0

Runtime

>= 1.7.4, < 2
 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