Giter Club home page Giter Club logo

fluent-plugin-split's Introduction

fluent-plugin-split

Fluentd output plugin to split a record into multiple records with key/value pair.

Overview

This plugin splits a record and parses each results to make key/value pairs.

Normally you can use a regular expression to parse a record. It is difficult to parse a record which has ambiguous numbers of data like a following record.

{"message":"key1=val1 key2=val2 key3=val3"}

Now you can easily generate a following result with this plugin.

{"key1":"val1","key2":"val2","key3":"val3"}

Installation

$ gem install fluent-plugin-split

Configuration

Example

<match *>
  type        split
  tag         split.message
  separator   \s+
  format      ^(?<key>[^=]+?)=(?<value>.*)$
  key_name    data
  reserve_msg yes
</match>

Parameters

parameter description default
tag key name for tag
format regexp to parse a record after split ^(?<key>[^=]+?)=(?<value>.*)$
separator regexp used by split \s+
key_name key name to be split
out_key key name of json object which includes divided records nil
reserve_msg if original message is reserved or not nil
keys_prefix if set, all extracted keys names will be preceded by this string nil

fluent-plugin-split's People

Contributors

kazegusuri avatar neozaru avatar

Watchers

 avatar  avatar  avatar

Forkers

neozaru

fluent-plugin-split's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.