fluent-plugin-maskrx 0.0.1.beta3 → 0.0.1.beta4

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: b6dc9dd484960f4efcb80a2a28c4a0873ecf43f96781803c0f83a680111e51a5
4
- data.tar.gz: 5aa7a979394892af8a96b2070cf67c1c59879361616097c9c12ef3bba0ecb539
3
+ metadata.gz: 355a007ecfc4cc725ef5d98211aa2c072f906a74478c9571d5fffb6de16ab6cf
4
+ data.tar.gz: 6d3f2bbc33e7b23a059cfe17409eb5074a46bc7d3ab84a89fc08387fab0c561c
5
5
  SHA512:
6
- metadata.gz: a827c95272e29ac16ccb23424d96b0bbb1d8fd0f0c6ff8e2389f2b9f8e97aba15411ed3d8dcab2389b24a97ae30ac4d5160709f3d3f49b87449514fcd275b9d1
7
- data.tar.gz: 70006931416eda376071bdc6add53043b9531e0fd197ead6946a644d4658567b9e26f1c5deaad7b4c173958614a95db0c36380d3355866aece2a526b6ac569f2
6
+ metadata.gz: 2afd52a4e53ddc05b8959da03ed415bf25a3d522b45f0a106a74418522b4789f1a34bb6fc8c43dd5c71dd61bc5d42f02761694cdd3a2cc603ce87c53645f6370
7
+ data.tar.gz: 77464ef2e18a09e1c7aa07762439e5dcf0db6ed14aff6ad21e0b044257c61cf4bb36b603d982cc6250609ed6ae993aa57c3fffdeb1d7576b4f67ab702938d944
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-maskrx"
7
- spec.version = "0.0.1.beta3"
7
+ spec.version = "0.0.1.beta4"
8
8
  spec.authors = ["Joshua Mervine"]
9
9
  spec.email = ["joshua@mervine.net"]
10
10
  spec.summary = %q{Fluentd filter plugin to mask strings within records.}
@@ -17,9 +17,14 @@ module Fluent::Plugin
17
17
  def configure(conf)
18
18
  super
19
19
 
20
+ patterns = []
20
21
  @mask_config_list.each do |config|
21
22
  raise Fluent::ConfigError, "pattern is required" if config.pattern.nil?
23
+
24
+ patterns.push(config.pattern)
22
25
  end
26
+
27
+ log.info("pluginx=maskrx at=configure patterns=\"#{patterns}}\"")
23
28
  end
24
29
 
25
30
  def filter(_, _, record)
@@ -56,7 +61,7 @@ module Fluent::Plugin
56
61
  value.gsub!(m, mask)
57
62
  end
58
63
 
59
- log.debug("plugin=maskrx at=mask_key_value pattern=#{pattern} value=#{value}")
64
+ log.debug("plugin=maskrx at=mask_key_value pattern=#{pattern} value=\"#{value}\"")
60
65
 
61
66
  return value
62
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-maskrx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta3
4
+ version: 0.0.1.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Mervine