fluent-plugin-maskrx 0.0.1.beta1 → 0.0.1.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/filter-plugin-maskrx.gemspec +1 -1
- data/lib/fluent/plugin/filter_maskrx.rb +8 -2
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 339d212ed1716a996b1ebdaaa7cd187f6bb92c790e6302aac418453cb9f256df
|
4
|
+
data.tar.gz: c6c5fde1b1e06419bcd765aec62068e15324555da04bc33bc72f1e05f4bcfa46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e978acf62e3c532e2fa6fd7c55a97e02e8a3ac0a501a05b9db6cfc8a7d3eb6c5a854328422e9051179440aa05c53258a12afddad8523fd78fe56396dc7a863a
|
7
|
+
data.tar.gz: 9a2455fdf843a1a86c3c1ae437d74f74aa404a5f337ae45161b8965300b046b7f7481a75ee82c0f51d8169b20fee141a17e50a864fda1d96be6e67f9fb80f27f
|
data/.gitignore
CHANGED
@@ -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.beta2"
|
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.}
|
@@ -16,12 +16,16 @@ module Fluent::Plugin
|
|
16
16
|
|
17
17
|
def configure(conf)
|
18
18
|
super
|
19
|
-
end
|
20
19
|
|
21
|
-
def filter(_, _, record)
|
22
20
|
@mask_config_list.each do |config|
|
23
21
|
raise Fluent::ConfigError, "pattern is required" if config.pattern.nil?
|
22
|
+
end
|
23
|
+
end
|
24
24
|
|
25
|
+
def filter(_, _, record)
|
26
|
+
log.debug("processing record: #{record}")
|
27
|
+
|
28
|
+
@mask_config_list.each do |config|
|
25
29
|
record = mask_record(config, record)
|
26
30
|
end
|
27
31
|
|
@@ -51,6 +55,8 @@ module Fluent::Plugin
|
|
51
55
|
value.gsub!(m, mask)
|
52
56
|
end
|
53
57
|
|
58
|
+
log.debug("applied pattern=#{pattern} to value=#{value}")
|
59
|
+
|
54
60
|
return value
|
55
61
|
end
|
56
62
|
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.
|
4
|
+
version: 0.0.1.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Mervine
|
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: 1.3.1
|
123
123
|
requirements: []
|
124
|
-
|
125
|
-
rubygems_version: 2.5.2
|
124
|
+
rubygems_version: 3.1.4
|
126
125
|
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: Fluentd filter plugin to mask strings within records.
|