fluent-plugin-filter-kv-parser 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27a9342381452e0d88dac38dc1c64dbbd1b913368c6b444f0adb27c182f7a547
|
4
|
+
data.tar.gz: fe84db2f5478cbb4e0694c5a7e45d7889d2c88689e420080de49f862848f4949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c496463a7dbf8c59eeea45e4295ed9f18d114a2957262ea2983fabfa179ef56a7cad533bb3070292b2d72700ee2778ce23fb10ef7516ccbd4d9f37fcbd7bc4e
|
7
|
+
data.tar.gz: 2d6a20e24e5219fa16f3af51a3b1a1916e178b41ecef581abf57193219091545b79164bafdc805d1b41056632e382989e255e68bd5a51e283761a580190b7f81
|
@@ -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.2"
|
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"
|
@@ -27,10 +27,10 @@ module Fluent
|
|
27
27
|
log_line = extract_log_line record[@key]
|
28
28
|
log_line.split(@keys_delimiter).each do |kv|
|
29
29
|
key, value = kv.split(@kv_delimiter_chart, 2)
|
30
|
-
record[key] = value
|
30
|
+
record[key] = value if value
|
31
31
|
end
|
32
32
|
|
33
|
-
record.tap { |r| r.delete(@key) if @remove_key }
|
33
|
+
record.tap { |r| r.delete(@key) if @remove_key }.compact
|
34
34
|
end
|
35
35
|
|
36
36
|
private
|
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.2
|
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-06-
|
11
|
+
date: 2020-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|