logstash-filter-unique 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b663a59ae0bfda51bcbf2745274e107d56677991
4
- data.tar.gz: 234071fabbfbb8260e56514eb49d5cac0be4fa76
3
+ metadata.gz: 35655f5a00fbb6a9fe6998110482befd4e55c4ca
4
+ data.tar.gz: 8e59e067c224d5ed9962127575dd5d34eb1690fa
5
5
  SHA512:
6
- metadata.gz: 1512dc689f2ea9d59d27a176368988b179cecb43ad6b01b6e8bbfccfd73eddaaf37273df7c66140c0105cd188dfecb767b8d8821409b4d2642b403660cb9b9aa
7
- data.tar.gz: b55d0f6e6f962d7bea41e891beb22b1138ef3cf85999bcfe5ef85106f19ae0fdcffd87f5499aea509d71e0f0ed42d8c3167a645e6e017cc51d6ec7d4c229eab2
6
+ metadata.gz: 45b32ea195cc1b9a9aaee8101693af430eb6281d3cda811d1f89f6a06461aa95aeb162404e14cbcab2d4d1e91ea3cd703e6b3ae5cd1db1987fa6dda6c3a317e7
7
+ data.tar.gz: d660561154ebd7618d19979bfc1a186beea958d564a5e3cbea8e3647544ba512a8cbc7ba60e1ecec3b0d3951df5f0234310ae384f932488301790e01839d689b
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
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/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-unique-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-unique-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-filter-unique.svg)](https://travis-ci.org/logstash-plugins/logstash-filter-unique)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -0,0 +1,53 @@
1
+ :plugin: unique
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
+ === Unique filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+
24
+
25
+ [id="plugins-{type}s-{plugin}-options"]
26
+ ==== Unique Filter Configuration Options
27
+
28
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
29
+
30
+ [cols="<,<,<",options="header",]
31
+ |=======================================================================
32
+ |Setting |Input type|Required
33
+ | <<plugins-{type}s-{plugin}-fields>> |<<array,array>>|Yes
34
+ |=======================================================================
35
+
36
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
37
+ filter plugins.
38
+
39
+ &nbsp;
40
+
41
+ [id="plugins-{type}s-{plugin}-fields"]
42
+ ===== `fields`
43
+
44
+ * This is a required setting.
45
+ * Value type is <<array,array>>
46
+ * There is no default value for this setting.
47
+
48
+ The fields on which to run the unique filter.
49
+
50
+
51
+
52
+ [id="plugins-{type}s-{plugin}-common-options"]
53
+ include::{include_path}/{type}.asciidoc[]
@@ -1,16 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-unique'
3
- s.version = '2.0.4'
3
+ s.version = '2.0.5'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "This filter gets the list of unique elements out of an array"
6
- s.description = "This filter gets the list of unique elements out of an array"
6
+ 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"
7
7
  s.authors = ["Elastic"]
8
8
  s.email = 'info@elastic.co'
9
9
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
10
10
  s.require_paths = ["lib"]
11
11
 
12
12
  # Files
13
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
13
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
14
  # Tests
15
15
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-unique
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 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
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: This filter gets the list of unique elements out of an array
41
+ 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
42
42
  email: info@elastic.co
43
43
  executables: []
44
44
  extensions: []
@@ -50,6 +50,7 @@ files:
50
50
  - Gemfile
51
51
  - NOTICE.TXT
52
52
  - README.md
53
+ - docs/index.asciidoc
53
54
  - lib/logstash/filters/unique.rb
54
55
  - logstash-filter-unique.gemspec
55
56
  - spec/filters/unique_spec.rb