Giter Site home page Giter Site logo

oleewere / fluent-plugin-jsonl_array_splitter Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 17 KB

Fluentd filter plugin for parsing multiple jsonl formatted json objects from text inputs (from one event into multiple events)

License: MIT License

Ruby 94.72% Makefile 5.28%
fluentd fluent-plugin jsonl

fluent-plugin-jsonl_array_splitter's Introduction

JSONL array splitter filter plugin for Fluentd

Build Status License: MIT Gem Version

Requirements

fluent-plugin-jsonl_array_splitter fluentd ruby
>= 0.1.0 >= v0.14.0 >= 2.4

Overview

Fluent filter plugin that can construct multiple records from one JSONL formatted (string) record.

Installation

Install from RubyGems:

$ gem install fluent-plugin-jsonl_array_splitter

Configuration

<filter preprocessed.raw.**>
  @type jsonl_array_splitter
  key_name rawJsonLines
</filter>

Input:

{"command_field": "v1", "rawJsonLines": "{\"key1\": \"val1\"},{\"key2\": \"val2\"}\n{\"key1\": \"val3\"},{\"key2\": \"val4\"}"}

Filter Output:

  {"command_field": "v1", "key1": "val1", "key2": "val2"},
  {"command_field": "v1", "key1": "val3", "key2": "val4"}

Configuration options

key_name: JSONL field name that needs to be parsed/splitted

reserve_key: keep original JSONL field in the output

debug: print lines that are parsed one-by-one

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

fluent-plugin-jsonl_array_splitter's People

Contributors

oleewere avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.