Skip to content

A fluentd plugin for splitting incoming messages into multiple message

License

Notifications You must be signed in to change notification settings

BitPatty/fluent-plugin-filter-split-message

Repository files navigation

fluent-plugin-filter-split-message

A fluentd filter plugin for splitting messages by a customizable delimiter.

Sample

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

.. is turned into ..

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

Usage

Install the plugin:

# 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 "<desired version>"

Create a logdrain and update your fluent configuration:

<filter>
  @type split_message

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

  # (Optional) The target field, defaults to "message"
  field_key message
</source>

Credit

About

A fluentd plugin for splitting incoming messages into multiple message

Topics

Resources

License

Stars

Watchers

Forks

Packages