logstash-filter-prune 2.0.5 → 2.0.6

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: 235b8f5dbe51477acb30bac94cf52b7f2bb7c63a
4
- data.tar.gz: 71fb35971cbeedbf9929d240dbe831569b61578b
3
+ metadata.gz: 0aa13777206748e30389b8dac3a5717a7de5c936
4
+ data.tar.gz: 323b0ad7e14c359bc05d1337dbd3d599f1195d4a
5
5
  SHA512:
6
- metadata.gz: 0dbd0c0723ce8ecdddc46190215cb2c4cf9b10e5599944ba7416dc0f5d006746f77a51c68d7e02ebd717b9483009c07bda95e2a3b5a4ff6ad9afb5d62586560c
7
- data.tar.gz: 240571b3dec2d17d99c9f3e1e7fdac0d016bb97c33edbb8b453af52fda2c72ba8154e6a88d711f4f8097c17169cf450b8b9ee41950301857863a614002980b69
6
+ metadata.gz: e988e91deb98a220e5f1a3eb4a3af92c5784c8fe223330336b73a905888a72d08ad1de87a5571365890eca6493cc2551ee8c030e40c737a82b8661e2f8fd0268
7
+ data.tar.gz: 0f2e99730b3045dd932609802d773f9bb73522d7e43f21809c70fe66cee58cc9910302b29a7d26c106d7bb008f120524b2984bbbf1d1f5a5b94465be7532ae1d
data/CHANGELOG.md CHANGED
@@ -1,9 +1,17 @@
1
- # 2.0.4
2
- - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
- # 2.0.3
4
- - New dependency requirements for logstash-core for the 5.0 release
1
+ ## 2.0.6
2
+ - doc: Documentation improvements.
3
+
4
+ ## 2.0.5
5
+ - doc: Documentation improvements.
6
+
7
+ ## 2.0.4
8
+ - internal,deps: Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
9
+
10
+ ## 2.0.3
11
+ - internal,deps: New dependency requirements for logstash-core for the 5.0 release
12
+
5
13
  ## 2.0.0
6
- - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
14
+ - internal: Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
7
15
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
8
- - Dependency on logstash-core update to 2.0
16
+ - internal,deps: Dependency on logstash-core update to 2.0
9
17
 
data/CONTRIBUTORS CHANGED
@@ -6,6 +6,7 @@ Maintainers:
6
6
 
7
7
  Contributors:
8
8
  * Aaron Mildenstein (untergeek)
9
+ * David R Soller (3ygun)
9
10
  * Jordan Sissel (jordansissel)
10
11
  * Pier-Hugues Pellerin (ph)
11
12
  * Richard Pijnenburg (electrical)
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
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-prune-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-prune-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-filter-prune.svg)](https://travis-ci.org/logstash-plugins/logstash-filter-prune)
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
 
@@ -11,12 +11,35 @@ require "logstash/namespace"
11
11
  # or <<plugins-filters-kv,kv>> filter that creates a number of fields
12
12
  # with names that you don't necessarily know the names of beforehand,
13
13
  # and you only want to keep a subset of them.
14
+ #
15
+ # Usage help:
16
+ # To specify a exact field name or value use the regular expression syntax `^some_name_or_value$`.
17
+ # Example usage: Input data `{ "msg":"hello world", "msg_short":"hw" }`
18
+ # [source,ruby]
19
+ # filter {
20
+ # %PLUGIN% {
21
+ # whitelist_names => [ "msg" ]
22
+ # }
23
+ # }
24
+ # Allows both `"msg"` and `"msg_short"` through.
25
+ #
26
+ # While:
27
+ # [source,ruby]
28
+ # filter {
29
+ # %PLUGIN% {
30
+ # whitelist_names => ["^msg$"]
31
+ # }
32
+ # }
33
+ # Allows only `"msg"` through.
34
+ #
35
+ # Logstash stores an event's `tags` as a field which is subject to pruning. Remember to `whitelist_names => [ "^tags$" ]`
36
+ # to maintain `tags` after pruning or use `blacklist_values => [ "^tag_name$" ]` to eliminate a specific `tag`.
14
37
 
15
38
  class LogStash::Filters::Prune < LogStash::Filters::Base
16
39
  config_name "prune"
17
40
 
18
41
  # Trigger whether configuration fields and values should be interpolated for
19
- # dynamic values.
42
+ # dynamic values (when resolving `%{some_field}`).
20
43
  # Probably adds some performance overhead. Defaults to false.
21
44
  config :interpolate, :validate => :boolean, :default => false
22
45
 
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-prune'
4
- s.version = '2.0.5'
4
+ s.version = '2.0.6'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The prune filter is for pruning event data from fields based on whitelist/blacklist of field names or their values (names and values can also be regular expressions)"
7
- s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
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"
8
8
  s.authors = ["Elastic"]
9
9
  s.email = 'info@elastic.co'
10
10
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-prune
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
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-30 00:00:00.000000000 Z
11
+ date: 2016-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ~>
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
18
  version: '1.0'
19
19
  name: logstash-core-plugin-api
@@ -21,13 +21,13 @@ dependencies:
21
21
  type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
33
  name: logstash-devutils
@@ -35,10 +35,10 @@ dependencies:
35
35
  type: :development
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
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: []
@@ -65,17 +65,17 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.4.5
78
+ rubygems_version: 2.4.8
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: The prune filter is for pruning event data from fields based on whitelist/blacklist of field names or their values (names and values can also be regular expressions)