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 +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +13 -4
- data/logstash-filter-ruby.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ae5b9cbafb94344c6850c0fac54655902206b92a4f71b86970b3d0c09b895b1
|
4
|
+
data.tar.gz: f1eb4fdada816333e22d8361c6f87d73ebdbeb5408e45c8eafc144d58ebc8e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4baec3704aa0874a3be6d27c87a370282eb6afe8874e9677abf3bfd360bca9d2a7ca74d33a2e268283feb08ab9e4684e95d7ec3016f2e24ea82f7e55199a6f9
|
7
|
+
data.tar.gz: bf6028f8e4819f2bb821180c2e422436852a1ae6ac58f63b65fe1c298c84159e54a16d6bb497e07c65ad6ee70eda1f623663389717ef37ab20d1515f1a21a968
|
data/CHANGELOG.md
CHANGED
data/docs/index.asciidoc
CHANGED
@@ -86,7 +86,7 @@ def filter(event)
|
|
86
86
|
end
|
87
87
|
----
|
88
88
|
|
89
|
-
|
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
|
-
|
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
|
-
|
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.
|
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.
|
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
|
+
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
|