fluent-plugin-anonymizer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -32,7 +32,7 @@ It is a sample to hash record with sha1 for `user_id`, `member_id` and `mail`. F
32
32
  ipv4_mask_keys host
33
33
  ipv4_mask_subnet 24
34
34
  remove_tag_prefix test.
35
- add_rag_prefix anonymized.
35
+ add_tag_prefix anonymized.
36
36
  </match>
37
37
 
38
38
  <match anonymized.message>
@@ -73,15 +73,16 @@ Round number for following one or more keys. It makes easy to aggregate calculat
73
73
  | 8 | 192.168.200.100 | 192.0.0.0 |
74
74
 
75
75
  * include_tag_key (default: false)
76
+ * tag_key
76
77
 
77
- Add original tag name into filtered record using SetTagKeyMixin function.
78
+ Add original tag name into filtered record using SetTagKeyMixin.
78
79
 
79
80
  * remove_tag_prefix
80
81
  * remove_tag_suffix
81
82
  * add_tag_prefix
82
83
  * add_tag_suffix
83
84
 
84
- Edit tag format using HandleTagNameMixin function.
85
+ set one or more option are required for editing tag name using HandleTagNameMixin.
85
86
 
86
87
  ## Notes
87
88
 
@@ -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.0.2"
7
+ spec.version = "0.0.3"
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 MD5/SHA1/SHA256/SHA384/SHA512 algorithms. This data masking plugin protects privacy data such as ID, email, phone number, IP address and so on.}
@@ -51,8 +51,9 @@ class Fluent::AnonymizerOutput < Fluent::Output
51
51
  next unless record.include?(hash_key)
52
52
  record[hash_key] = filter_anonymize_record(record[hash_key], hash_algorithm)
53
53
  end
54
- filter_record(tag, time, record)
55
- Fluent::Engine.emit(tag, time, record)
54
+ t = tag.dup
55
+ filter_record(t, time, record)
56
+ Fluent::Engine.emit(t, time, record)
56
57
  end
57
58
  chain.next
58
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-anonymizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-20 00:00:00.000000000 Z
12
+ date: 2013-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler