logstash-filter-drop 3.0.2 → 3.0.3

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: 6b382a69c6b65b6c82e2afcfca0777df572f33f5
4
- data.tar.gz: 218931ac47b7b5983952794250de74216f6998b8
3
+ metadata.gz: 9d9f1ffce88e9b25aad2c66a6a237e43b7d69464
4
+ data.tar.gz: f421d9537a68d3fd0c090fcdc542928614f71a9d
5
5
  SHA512:
6
- metadata.gz: a058e19a10fb57ea31be0fd6707ae0f4d5f2efb3927ef446d40cc57bab5132f641453c93818247f771b5b755f4cdf76a9886e9cf5592b9b57327cf9305b77027
7
- data.tar.gz: 5fc8152f94232af266ff71e86eb35283058545cd9710f032250882308c129b88049d9d0838f289af28e314c9ab7e01f58a2a865deb17451617d3f6e5d2043989
6
+ metadata.gz: 6f65eb8bcc7d5d5542fbda968238603c41c72014883503c0cfab254a737ee027cef9ef45de6cdbf1ea91e4d9f51801a4db2dfe812619eabdd07d77a6be72925c
7
+ data.tar.gz: b37a86c53592a109071cf1944f3771ee5ae5522bda8cfa7bbaa657abed3cb52caaa126a5b78679244b59a05f1942d63bea6d0f299bfd387d3fd459e9afacf590
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,77 @@
1
+ :plugin: drop
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
+ === Drop filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Drop filter.
24
+
25
+ Drops everything that gets to this filter.
26
+
27
+ This is best used in combination with conditionals, for example:
28
+ [source,ruby]
29
+ filter {
30
+ if [loglevel] == "debug" {
31
+ drop { }
32
+ }
33
+ }
34
+
35
+ The above will only pass events to the drop filter if the loglevel field is
36
+ `debug`. This will cause all events matching to be dropped.
37
+
38
+ [id="plugins-{type}s-{plugin}-options"]
39
+ ==== Drop Filter Configuration Options
40
+
41
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
42
+
43
+ [cols="<,<,<",options="header",]
44
+ |=======================================================================
45
+ |Setting |Input type|Required
46
+ | <<plugins-{type}s-{plugin}-percentage>> |<<number,number>>|No
47
+ |=======================================================================
48
+
49
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
50
+ filter plugins.
51
+
52
+ &nbsp;
53
+
54
+ [id="plugins-{type}s-{plugin}-percentage"]
55
+ ===== `percentage`
56
+
57
+ * Value type is <<number,number>>
58
+ * Default value is `100`
59
+
60
+ Drop all the events within a pre-configured percentage.
61
+
62
+ This is useful if you just need a percentage but not the whole.
63
+
64
+ Example, to only drop around 40% of the events that have the field loglevel with value "debug".
65
+
66
+ filter {
67
+ if [loglevel] == "debug" {
68
+ drop {
69
+ percentage => 40
70
+ }
71
+ }
72
+ }
73
+
74
+
75
+
76
+ [id="plugins-{type}s-{plugin}-common-options"]
77
+ include::{include_path}/{type}.asciidoc[]
@@ -22,7 +22,7 @@ class LogStash::Filters::Drop < LogStash::Filters::Base
22
22
  #
23
23
  # This is useful if you just need a percentage but not the whole.
24
24
  #
25
- # Example, to only drop around 40% of the events that have the field loglevel wiht value "debug".
25
+ # Example, to only drop around 40% of the events that have the field loglevel with value "debug".
26
26
  #
27
27
  # filter {
28
28
  # if [loglevel] == "debug" {
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-drop'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Drops everything that gets to this filter."
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-drop
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/drop.rb
60
61
  - logstash-filter-drop.gemspec
61
62
  - spec/filters/drop_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: Drops everything that gets to this filter.