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 +4 -4
- data/filter-plugin-maskrx.gemspec +1 -1
- data/lib/fluent/plugin/filter_maskrx.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 355a007ecfc4cc725ef5d98211aa2c072f906a74478c9571d5fffb6de16ab6cf
|
4
|
+
data.tar.gz: 6d3f2bbc33e7b23a059cfe17409eb5074a46bc7d3ab84a89fc08387fab0c561c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
64
|
+
log.debug("plugin=maskrx at=mask_key_value pattern=#{pattern} value=\"#{value}\"")
|
60
65
|
|
61
66
|
return value
|
62
67
|
end
|