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: 7ed4b252f8b033a1adf97ff84262c182e16c2e280d0e8a647fca1c93b28851d1
4
- data.tar.gz: 9b4801ce9b57c7b2a8705c8f85b963616d2e004f6653ed861700fa3e2e4b4cfe
3
+ metadata.gz: 27a9342381452e0d88dac38dc1c64dbbd1b913368c6b444f0adb27c182f7a547
4
+ data.tar.gz: fe84db2f5478cbb4e0694c5a7e45d7889d2c88689e420080de49f862848f4949
5
5
  SHA512:
6
- metadata.gz: f81e9efa55ee3c61d780633e8108e0b3d6f11f83cfc13c1e20a45d4002fa5431e77eaa22df2e381b44b410aa61e1ba93e2284f1bfc017a5e2870a1d460c4d60d
7
- data.tar.gz: b949db4abb5d6a62c7abaed2eeb825b100a1a49d27f5f8c0dfdb821ccc9b0da170833ee63a72cefe82331c09f5de396dfc69fe3798b7a31c8bb961c9035b5ac8
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.1"
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2020-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd