logstash-filter-checksum 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f529f6e4288e5f15361ee69399ab425541604722
4
- data.tar.gz: cfeeed1692add9b9a2d3c9ab639decd453e2c6e9
3
+ metadata.gz: 3300bfcff118ace150200b8bac8f3115d564551d
4
+ data.tar.gz: 472cf01ddcad654c7d2de0926aea93b756dd6fc9
5
5
  SHA512:
6
- metadata.gz: 99fcb56cf4e4e45791d85e25afddbb81ad0bb76c0a49974803bb11b824b1222033dcac03a140fe211478bdeaf7465e14a2882b618e508222def8d9d5b7b03e95
7
- data.tar.gz: bde0b3fc9b8eec32dbac7cd2c1dda71f6a3fe1d6d021f2066402e132367adc1ba040ad20eff4eba769867f891f5a8b146fdcc77617440d334e9695bd194ce9da
6
+ metadata.gz: b6932f141f75c2da164d3fcedf350ba25868f54ce1be9c9d5d2f5d73b7cb83acfdb47fe911b5ba217611ab44b4061fe71aa090afc75a0c27f0a2994b2ced060c
7
+ data.tar.gz: 479fcb124718128f6ecfa11d1f899de41bdc53593aeb251342faaf3a4d1caf6fefec3ae82b8a83d246c78f4d578e94a8d735bc83f4a9eef14473223241cf0ddc
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
@@ -0,0 +1,69 @@
1
+ :plugin: checksum
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
+ === Checksum filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This filter let's you create a checksum based on various parts
24
+ of the logstash event.
25
+ This can be useful for deduplication of messages or simply to provide
26
+ a custom unique identifier.
27
+
28
+ This is VERY experimental and is largely a proof-of-concept
29
+
30
+ [id="plugins-{type}s-{plugin}-options"]
31
+ ==== Checksum Filter Configuration Options
32
+
33
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
34
+
35
+ [cols="<,<,<",options="header",]
36
+ |=======================================================================
37
+ |Setting |Input type|Required
38
+ | <<plugins-{type}s-{plugin}-algorithm>> |<<string,string>>, one of `["md5", "sha", "sha1", "sha256", "sha384"]`|No
39
+ | <<plugins-{type}s-{plugin}-keys>> |<<array,array>>|No
40
+ |=======================================================================
41
+
42
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
43
+ filter plugins.
44
+
45
+ &nbsp;
46
+
47
+ [id="plugins-{type}s-{plugin}-algorithm"]
48
+ ===== `algorithm`
49
+
50
+ * Value can be any of: `md5`, `sha`, `sha1`, `sha256`, `sha384`
51
+ * Default value is `"sha256"`
52
+
53
+
54
+
55
+ [id="plugins-{type}s-{plugin}-keys"]
56
+ ===== `keys`
57
+
58
+ * Value type is <<array,array>>
59
+ * Default value is `["message", "@timestamp", "type"]`
60
+
61
+ A list of keys to use in creating the string to checksum
62
+ Keys will be sorted before building the string
63
+ keys and values will then be concatenated with pipe delimeters
64
+ and checksummed
65
+
66
+
67
+
68
+ [id="plugins-{type}s-{plugin}-common-options"]
69
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-checksum'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This filter let's you create a checksum based on various parts of the logstash event."
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['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
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-checksum
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
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
@@ -56,6 +56,7 @@ files:
56
56
  - LICENSE
57
57
  - NOTICE.TXT
58
58
  - README.md
59
+ - docs/index.asciidoc
59
60
  - lib/logstash/filters/checksum.rb
60
61
  - logstash-filter-checksum.gemspec
61
62
  - spec/filters/checksum_spec.rb
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
82
  version: '0'
82
83
  requirements: []
83
84
  rubyforge_project:
84
- rubygems_version: 2.6.3
85
+ rubygems_version: 2.4.8
85
86
  signing_key:
86
87
  specification_version: 4
87
88
  summary: This filter let's you create a checksum based on various parts of the logstash event.