Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bitpatty/fluent-plugin-filter-split-message

A fluentd plugin for splitting incoming messages into multiple message
https://github.com/bitpatty/fluent-plugin-filter-split-message

fluentd fluentd-plugin

Last synced: 3 days ago
JSON representation

A fluentd plugin for splitting incoming messages into multiple message

Awesome Lists containing this project

README

        

# fluent-plugin-filter-split-message

A [fluentd](https://www.fluentd.org/) filter plugin for splitting messages by a customizable delimiter.

## Sample

```ruby
{"message": "abc,def,ghi"}
```

.. is turned into ..

```ruby
{"message": "abc"}
{"message": "def"}
{"message": "ghi"}
```

## Usage

Install the plugin:

```sh
# See https://github.com/BitPatty/fluent-plugin-filter-split-message/releases for a list of valid versions
gem install fluent-plugin-filter-split-message --version ""
```

Create a logdrain and update your fluent configuration:

```conf

@type split_message

# (Optional) The delimiter to use, defaults to ","
delimiter ,

# (Optional) The target field, defaults to "message"
field_key message

```

## Credit

- [fluent-plugin-split-event](https://github.com/uken/fluent-plugin-split-event) used as plugin reference