logstash-filter-ruby 3.1.2 → 3.1.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
  SHA256:
3
- metadata.gz: e6e83ad6fb8249fb71f960954f7fb9bf6be332827278489b37e714183f17453b
4
- data.tar.gz: 251bb8ae5b184fab1beda5ac1c7415d725d76e376a43afee2c2c67fc7bd18ab9
3
+ metadata.gz: 2ae5b9cbafb94344c6850c0fac54655902206b92a4f71b86970b3d0c09b895b1
4
+ data.tar.gz: f1eb4fdada816333e22d8361c6f87d73ebdbeb5408e45c8eafc144d58ebc8e72
5
5
  SHA512:
6
- metadata.gz: 9405d07f2fccb0b3e897537c3db5a61b03d2bec869a54b66f5be0f536d206f87d3f933d85751e1b1670e1fc6109d6da3604579ede565e76bca3224c4962cfd7e
7
- data.tar.gz: 734530d566c92acbcd48d1b524eb5e5bcb44d122dec4771f80ee410e75363c229fe03a4d45d31aa4dad9bac0b04e150f8abe2619276df8170233488ef0e9a2e1
6
+ metadata.gz: d4baec3704aa0874a3be6d27c87a370282eb6afe8874e9677abf3bfd360bca9d2a7ca74d33a2e268283feb08ab9e4684e95d7ec3016f2e24ea82f7e55199a6f9
7
+ data.tar.gz: bf6028f8e4819f2bb821180c2e422436852a1ae6ac58f63b65fe1c298c84159e54a16d6bb497e07c65ad6ee70eda1f623663389717ef37ab20d1515f1a21a968
@@ -1,3 +1,6 @@
1
+ ## 3.1.3
2
+ - Fix documentation issues
3
+
1
4
  ## 3.1.2
2
5
  - Fix concurrency issues in combination with Logstash 6.x and multiple worker threads that was caused by a [JRuby issue](https://github.com/jruby/jruby/issues/4868)
3
6
 
@@ -86,7 +86,7 @@ def filter(event)
86
86
  end
87
87
  ----
88
88
 
89
- ====== Testing the ruby script
89
+ ===== Testing the ruby script
90
90
 
91
91
  To validate the behaviour of the `filter` method you implemented,
92
92
  the Ruby filter plugin provides an inline test framework where you
@@ -124,7 +124,7 @@ end
124
124
 
125
125
  We can now test that the ruby script we're using is implemented correctly:
126
126
 
127
- [source]
127
+ [source,shell]
128
128
  ----
129
129
  % bin/logstash -e "filter { ruby { path => '/etc/logstash/drop_percentage.rb' script_params => { 'drop_percentage' => 0.5 } } }" -t
130
130
  [2017-10-13T13:44:29,723][INFO ][logstash.filters.ruby.script] Test run complete {:script_path=>"/etc/logstash/drop_percentage.rb", :results=>{:passed=>1, :failed=>0, :errored=>0}}
@@ -157,7 +157,7 @@ filter plugins.
157
157
 
158
158
  * Value type is <<string,string>>
159
159
  * There is no default value for this setting.
160
- * This setting cannot be used together with `path`.
160
+ * This setting cannot be used together with `path`.
161
161
 
162
162
  The code to execute for every event.
163
163
  You will have an `event` variable available that is the event itself. See the <<event-api,Event API>> for more information.
@@ -175,7 +175,7 @@ Any code to execute at logstash startup-time
175
175
 
176
176
  * Value type is <<string,string>>
177
177
  * There is no default value for this setting.
178
- * This setting cannot be used together with `code`.
178
+ * This setting cannot be used together with `code`.
179
179
 
180
180
  The path of the ruby script file that implements the `filter` method.
181
181
 
@@ -188,5 +188,14 @@ The path of the ruby script file that implements the `filter` method.
188
188
  A key/value hash with parameters that are passed to the register method
189
189
  of your ruby script file defined in `path`.
190
190
 
191
+ [id="plugins-{type}s-{plugin}-tag_on_exception"]
192
+ ===== `tag_on_exception`
193
+
194
+ * Value type is <<string,string>>
195
+ * Default value is `_rubyexception`
196
+
197
+ Tag to add to events in case the ruby code (either inline or file based)
198
+ causes an exception.
199
+
191
200
  [id="plugins-{type}s-{plugin}-common-options"]
192
201
  include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-ruby'
4
- s.version = '3.1.2'
4
+ s.version = '3.1.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Executes arbitrary Ruby code"
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"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement