Sha256: 8c052e5cce6afb163edfea93d4ef60349227b3580c44add8547cc9d27ee03997

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

# fluent-plugin-force-encoding

[Fluentd](https://fluentd.org/) filter plugin to force encoding specified keys.


## Installation

### RubyGems

```
$ gem install fluent-plugin-force-encoding
```

### Bundler

Add following line to your Gemfile:

```ruby
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

* [record_accessor](https://docs.fluentd.org/v/1.0/plugin-helper-overview/api-plugin-helper-record_accessor)

* See also: [Filter Plugin Overview](https://docs.fluentd.org/v/1.0/filter#overview)

## 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-force-encoding-0.1.0 README.md