fluent-plugin-filter-kv-parser 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/fluent-plugin-filter-kv-parser.gemspec +1 -1
- data/lib/fluent/plugin/filter_key_value_parser.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caba515d5a8c6695dbcf8260e35b17a334b3f0bd52ae0a69c806b7328bfe3ec8
|
4
|
+
data.tar.gz: 66d598cdcc9e239c31d3ea75beec7482eaec99b6ac47c1b8a6a1f33b73fb10e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f5e88578e8de5411a2b78dbb9939ba002618bab919cb0536238deee6f3d3547af9776019c181afe28db4dfb51564834cc09d9107bf4a637d3b13966fb50669c
|
7
|
+
data.tar.gz: 4b8496dde13c15551e497434d8976bce6711023010a2e81f6412b05baa4df4fea1f631189800d3e6f9bd7365ac77a1b6a6da9ad9a2470937b3d381989ee505ed
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ gem install fluent-plugin-filter-kv-parser
|
|
24
24
|
remove_key false
|
25
25
|
remove_prefix /^prefix/
|
26
26
|
keys_delimiter /\s+/
|
27
|
-
|
27
|
+
kv_delimiter_char '='
|
28
28
|
filtered_keys akey,bkey,ckey
|
29
29
|
filtered_keys_regex /^sub_[a-zA-Z_0-9]+/
|
30
30
|
filter_out_lines_without_keys false
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-filter-kv-parser"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.7"
|
7
7
|
s.authors = ["Al-waleed Shihadeh"]
|
8
8
|
s.email = ["wshihadeh.dev@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/wshihadeh/fluent-plugin-filter-kv-parser.git"
|
@@ -11,7 +11,7 @@ module Fluent
|
|
11
11
|
config_param :use_regex, :bool, default: false
|
12
12
|
config_param :remove_prefix, :string, default: ''
|
13
13
|
config_param :keys_delimiter, :string, default: '/\s+/'
|
14
|
-
config_param :
|
14
|
+
config_param :kv_delimiter_char, :string, default: '='
|
15
15
|
config_param :filtered_keys, :string, default: nil
|
16
16
|
config_param :filtered_keys_regex, :string, default: nil
|
17
17
|
config_param :filtered_keys_delimiter, :string, default: ','
|
@@ -63,7 +63,7 @@ module Fluent
|
|
63
63
|
def delimiter_filter(line)
|
64
64
|
items = {}
|
65
65
|
line.split(@keys_delimiter).each do |kv|
|
66
|
-
key, value = kv.split(@
|
66
|
+
key, value = kv.split(@kv_delimiter_char, 2)
|
67
67
|
items[key] = value if value
|
68
68
|
end
|
69
69
|
items
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-filter-kv-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Al-waleed Shihadeh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|