fluent-plugin-anonymizer 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/fluent-plugin-anonymizer.gemspec +1 -1
- data/lib/fluent/plugin/anonymizer.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 742a45cbfa285505d92f31e0165bbd8cc88f69b2
|
4
|
+
data.tar.gz: 7de295ce9c5de1444ab2db88166a2966658d436f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f076468bccbb31557ef584ca23a33544cc57c9b68ffd899b6722204cb6b94691a939d3197b1942436fa6ec07e1256445b51ceb55b8d90e6b6d6e1493d875364
|
7
|
+
data.tar.gz: d584a6836e19f639f112a1ad7c5fe88a36c6825758115c59ad6bca98af7a1ba9d07155bc6187786adec2887920621f32d7181a3bd2b6bc72ce22e481afb21f03
|
data/README.md
CHANGED
@@ -13,10 +13,10 @@ install with gem or fluent-gem command as:
|
|
13
13
|
$ gem install fluent-plugin-anonymizer
|
14
14
|
|
15
15
|
# for td-agent
|
16
|
-
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-anonymizer -v 0.5.
|
16
|
+
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-anonymizer -v 0.5.1
|
17
17
|
|
18
18
|
# for td-agent2
|
19
|
-
$ sudo td-agent-gem install fluent-plugin-anonymizer -v 0.5.
|
19
|
+
$ sudo td-agent-gem install fluent-plugin-anonymizer -v 0.5.1
|
20
20
|
`````
|
21
21
|
|
22
22
|
## Tutorial
|
@@ -94,8 +94,8 @@ It is a sample to hash record with sha1 for `user_id`, `member_id` and `mail`. F
|
|
94
94
|
ipv6_mask_subnet 104
|
95
95
|
|
96
96
|
# Set tag rename pattern
|
97
|
+
tag anonymized.${tag}
|
97
98
|
remove_tag_prefix test.
|
98
|
-
add_tag_prefix anonymized.
|
99
99
|
</match>
|
100
100
|
|
101
101
|
<match anonymized.message>
|
@@ -141,6 +141,12 @@ Round number for following one or more keys. It makes easy to aggregate calculat
|
|
141
141
|
* include_tag_key (default: false)
|
142
142
|
* tag_key
|
143
143
|
|
144
|
+
set one or more option are required for editing tag name using HandleTagNameMixin.
|
145
|
+
|
146
|
+
* tag
|
147
|
+
|
148
|
+
In the case of using this option [like 'tag anonymized.${tag}' with tag placeholder](https://github.com/y-ken/fluent-plugin-anonymizer/blob/master/test/plugin/test_out_anonymizer.rb#L179), tag will be modified after these options affected. which are remove_tag_prefix, remove_tag_suffix, add_tag_prefix and add_tag_suffix.
|
149
|
+
|
144
150
|
Add original tag name into filtered record using SetTagKeyMixin.
|
145
151
|
|
146
152
|
* remove_tag_prefix
|
@@ -148,12 +154,6 @@ Add original tag name into filtered record using SetTagKeyMixin.
|
|
148
154
|
* add_tag_prefix
|
149
155
|
* add_tag_suffix
|
150
156
|
|
151
|
-
set one or more option are required for editing tag name using HandleTagNameMixin.
|
152
|
-
|
153
|
-
* tag
|
154
|
-
|
155
|
-
On using this option [like 'tag anonymized.${tag}' with tag placeholder](https://github.com/y-ken/fluent-plugin-anonymizer/blob/master/test/plugin/test_out_anonymizer.rb#L179), it will be overwrite after these options affected. which are remove_tag_prefix, remove_tag_suffix, add_tag_prefix and add_tag_suffix.
|
156
|
-
|
157
157
|
## Notes
|
158
158
|
|
159
159
|
* hashing nested value behavior is compatible with [LogStash::Filters::Anonymize](https://github.com/logstash/logstash/blob/master/lib/logstash/filters/anonymize.rb) does. For further details, please check it out the test code at [test_emit_nest_value](https://github.com/y-ken/fluent-plugin-anonymizer/blob/master/test/plugin/test_out_anonymizer.rb#L91).
|
@@ -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-anonymizer"
|
7
|
-
spec.version = "0.5.
|
7
|
+
spec.version = "0.5.1"
|
8
8
|
spec.authors = ["Kentaro Yoshida"]
|
9
9
|
spec.email = ["y.ken.studio@gmail.com"]
|
10
10
|
spec.summary = %q{Fluentd filter output plugin to anonymize records with HMAC of MD5/SHA1/SHA256/SHA384/SHA512 algorithms. This data masking plugin protects privacy data such as UserID, Email, Phone number, IPv4/IPv6 address and so on.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-anonymizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kentaro Yoshida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|