logstash-filter-anonymize 3.0.2 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/Gemfile +8 -1
- data/docs/index.asciidoc +77 -0
- data/lib/logstash/filters/anonymize.rb +3 -1
- data/logstash-filter-anonymize.gemspec +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3810d777967374a354d9cd1ca694c485647e970c
|
4
|
+
data.tar.gz: 97421c3eba9023095dd20a8f60803ad8f8d09ff4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abeeaf93dbf6cfd0383c6d7939a0991ac75caff96e6685d3c2cb3790b37f2d87bcf0adf14219f73976d797c53cbbeebf398e4cbd69e8bc511325dba844f207ec
|
7
|
+
data.tar.gz: b4ee9501156ee99de3e1dea4156654f5137bbc7af115d300cd5b5a0224395abdb437b8e5bb80fd422a514247c5ccb43f9a03ee0ce702fff80be2799d98281579
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in logstash-mass_effect.gemspec
|
4
3
|
gemspec
|
4
|
+
|
5
|
+
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
|
6
|
+
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
|
7
|
+
|
8
|
+
if Dir.exist?(logstash_path) && use_logstash_source
|
9
|
+
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
|
10
|
+
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
|
11
|
+
end
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
:plugin: anonymize
|
2
|
+
:type: filter
|
3
|
+
|
4
|
+
///////////////////////////////////////////
|
5
|
+
START - GENERATED VARIABLES, DO NOT EDIT!
|
6
|
+
///////////////////////////////////////////
|
7
|
+
:version: %VERSION%
|
8
|
+
:release_date: %RELEASE_DATE%
|
9
|
+
:changelog_url: %CHANGELOG_URL%
|
10
|
+
:include_path: ../../../../logstash/docs/include
|
11
|
+
///////////////////////////////////////////
|
12
|
+
END - GENERATED VARIABLES, DO NOT EDIT!
|
13
|
+
///////////////////////////////////////////
|
14
|
+
|
15
|
+
[id="plugins-{type}-{plugin}"]
|
16
|
+
|
17
|
+
=== Anonymize filter plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
deprecated[3.0.3,We recommend that you use the <<plugins-filters-fingerprint,fingerprint filter plugin>> instead.]
|
24
|
+
|
25
|
+
Anonymize fields by replacing values with a consistent hash.
|
26
|
+
|
27
|
+
[id="plugins-{type}s-{plugin}-options"]
|
28
|
+
==== Anonymize Filter Configuration Options
|
29
|
+
|
30
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
31
|
+
|
32
|
+
[cols="<,<,<",options="header",]
|
33
|
+
|=======================================================================
|
34
|
+
|Setting |Input type|Required
|
35
|
+
| <<plugins-{type}s-{plugin}-algorithm>> |<<string,string>>, one of `["SHA1", "SHA256", "SHA384", "SHA512", "MD5", "MURMUR3", "IPV4_NETWORK"]`|Yes
|
36
|
+
| <<plugins-{type}s-{plugin}-fields>> |<<array,array>>|Yes
|
37
|
+
| <<plugins-{type}s-{plugin}-key>> |<<string,string>>|Yes
|
38
|
+
|=======================================================================
|
39
|
+
|
40
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
41
|
+
filter plugins.
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
[id="plugins-{type}s-{plugin}-algorithm"]
|
46
|
+
===== `algorithm`
|
47
|
+
|
48
|
+
* This is a required setting.
|
49
|
+
* Value can be any of: `SHA1`, `SHA256`, `SHA384`, `SHA512`, `MD5`, `MURMUR3`, `IPV4_NETWORK`
|
50
|
+
* Default value is `"SHA1"`
|
51
|
+
|
52
|
+
digest/hash type
|
53
|
+
|
54
|
+
[id="plugins-{type}s-{plugin}-fields"]
|
55
|
+
===== `fields`
|
56
|
+
|
57
|
+
* This is a required setting.
|
58
|
+
* Value type is <<array,array>>
|
59
|
+
* There is no default value for this setting.
|
60
|
+
|
61
|
+
The fields to be anonymized
|
62
|
+
|
63
|
+
[id="plugins-{type}s-{plugin}-key"]
|
64
|
+
===== `key`
|
65
|
+
|
66
|
+
* This is a required setting.
|
67
|
+
* Value type is <<string,string>>
|
68
|
+
* There is no default value for this setting.
|
69
|
+
|
70
|
+
Hashing key
|
71
|
+
When using MURMUR3 the key is ignored but must still be set.
|
72
|
+
When using IPV4_NETWORK key is the subnet prefix lentgh
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
77
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -2,7 +2,9 @@
|
|
2
2
|
require "logstash/filters/base"
|
3
3
|
require "logstash/namespace"
|
4
4
|
|
5
|
-
#
|
5
|
+
# deprecated[3.0.3,We recommend that you use the <<plugins-filters-fingerprint,fingerprint filter plugin>> instead.]
|
6
|
+
#
|
7
|
+
# Anonymize fields by replacing values with a consistent hash.
|
6
8
|
class LogStash::Filters::Anonymize < LogStash::Filters::Base
|
7
9
|
config_name "anonymize"
|
8
10
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-anonymize'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.4'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Anonymize fields using by replacing values with a consistent hash"
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.require_paths = ["lib"]
|
12
12
|
|
13
13
|
# Files
|
14
|
-
s.files = Dir[
|
14
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
15
15
|
|
16
16
|
# Tests
|
17
17
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-anonymize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/filters/anonymize.rb
|
74
75
|
- logstash-filter-anonymize.gemspec
|
75
76
|
- spec/filters/anonymize_spec.rb
|
@@ -95,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
96
|
version: '0'
|
96
97
|
requirements: []
|
97
98
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.8
|
99
100
|
signing_key:
|
100
101
|
specification_version: 4
|
101
102
|
summary: Anonymize fields using by replacing values with a consistent hash
|