Sha256: fe31d7f039601f9954f842d46f8e6f25a36bbe1211578b7aac1c1e8d943ae76f

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

fluent-plugin-record_splitter
=====================

Output split array plugin for fluentd.

## Installation

```
gem install fluent-plugin-record_splitter
```

## Configuration

    <match pattern>
      type record_splitter
      tag foo.splitted
      split_key target_field
      keep_keys ["common","general"]
    </match>

If following record is passed:

```js
{'common':'c', 'general':'g', 'other':'foo', 'target_field':[ {'k1':'v1'}, {'k2':'v2'} ] }
```

then you got new records like below:

```js
{'common':'c', 'general':'g', 'k1':'v1'}
{'common':'c', 'general':'g', 'k2':'v2'}
```

another configuration

    <match pattern>
      type record_splitter
      tag foo.splitted
      split_key target_field
      keep_other_key true
      remove_keys ["general"]
    </match>

If following record is passed:

```js
{'common':'c', 'general':'g', 'other':'foo', 'target_field':[ {'k1':'v1'}, {'k2':'v2'} ] }
```

then you got new records like below:

```js
{'common':'c', 'other':'foo', 'k1':'v1'}
{'common':'c', 'other':'foo', 'k2':'v2'}
```

## Copyright

<table>
  <tr>
    <td>Author</td><td>Yuri Odagiri <ixixizko@gmail.com></td>
  </tr>
  <tr>
    <td>Copyright</td><td>Copyright (c) 2015- Yuri Odagiri</td>
  </tr>
  <tr>
    <td>License</td><td>MIT License</td>
  </tr>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluent-plugin-record_splitter-0.1.5 README.md
fluent-plugin-record_splitter-0.1.4 README.md
fluent-plugin-record_splitter-0.1.3 README.md