fluent-plugin-flatten 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +7 -0
- data/fluent-plugin-flatten.gemspec +1 -1
- data/lib/fluent/plugin/out_flatten.rb +3 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c82f4c7940e5ac3c665206e07862d86d8719f51bc87e4c85b25b292312811e9c
|
4
|
+
data.tar.gz: bfe0a3646d8ce2d101bae799416fe37ae62911bc7e7c4adae2265914e1239b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6416a61b1036e8b74d4d8853954f4f2a52ae01facd5157ec8f32c436ae0d5cfbfe87db0669dd92500f0a3f9673f1d5f191caa68e219d72ac9c296987e680743
|
7
|
+
data.tar.gz: 89fe7a075af15111d51993c2f9475ef9d7e8e5d08c4d02f4b351c483e0a751d0c244e7eb50f23b95a6b2339519405ced2dd92c314b0e503c184888a6f99b62cb
|
data/README.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# fluent-plugin-flatten, a plugin for [Fluentd](http://fluentd.org)
|
2
2
|
|
3
|
+
## Requirements
|
4
|
+
|
5
|
+
| fluent-plugin-flatten | fluentd | ruby |
|
6
|
+
|-----------------------|------------|--------|
|
7
|
+
| >= 0.1.0 | >= v0.14.8 | >= 2.1 |
|
8
|
+
| < 0.1.0 | >= v0.12.0 | >= 1.9 |
|
9
|
+
|
3
10
|
## Component
|
4
11
|
|
5
12
|
### FlattenOutput
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'json'
|
2
|
+
require 'fluent/plugin/output'
|
2
3
|
|
3
4
|
module Fluent::Plugin
|
4
5
|
class FlattenOutput < Fluent::Plugin::Output
|
@@ -18,17 +19,8 @@ module Fluent::Plugin
|
|
18
19
|
desc "Replaces spaces in the resulting tag with the key passed"
|
19
20
|
config_param :replace_space_in_tag, :string, default: nil
|
20
21
|
|
21
|
-
def
|
22
|
-
|
23
|
-
|
24
|
-
if (
|
25
|
-
!remove_tag_prefix &&
|
26
|
-
!remove_tag_suffix &&
|
27
|
-
!add_tag_prefix &&
|
28
|
-
!add_tag_suffix
|
29
|
-
)
|
30
|
-
raise Fluent::ConfigError, "out_flatten: At least one of remove_tag_prefix/remove_tag_suffix/add_tag_prefix/add_tag_suffix is required to be set"
|
31
|
-
end
|
22
|
+
def multi_workers_ready?
|
23
|
+
true
|
32
24
|
end
|
33
25
|
|
34
26
|
def process(tag, es)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-flatten
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kentaro Kuribayashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.7.6
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Fluentd plugin to extract values for nested key paths and re-emit them as
|