logstash-filter-extractnumbers 3.0.0-java → 3.0.1-java

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: b228e30482c8afedd1e77c84e275281a66cfd171
4
- data.tar.gz: 9a193341a09bed3332b16e206191b90a961c0205
3
+ metadata.gz: e92e9113a807033cab0b37afc63f5d3c14ac47a9
4
+ data.tar.gz: b52610db522037b0d5aac6d3f7ac45781f7aa5e3
5
5
  SHA512:
6
- metadata.gz: 0f9c73068a51ff5987654b2947eeeeb5a613dc99428b9efe31faf08c31fd8af17754047a2c2e38f4c1058f0d52c554fbaaa035e6a66fcb9b7d53e953a025a955
7
- data.tar.gz: 97b02d1e090ba9f25c4dd2ed480b153010c002cb7c13f41bb677e8e7ad1df0801d1486a4ba7eee9047eea9a4f1bdd71b10e5234c7d4a36c3a207d4cc14658db5
6
+ metadata.gz: ea4bcfdef73fbaa9424356cca403e308f447facabb07b69ecb8b2bb086884a6afc8070e1787ec9989a1dec66b548b52d9bf63fe11ff8855738a1ab618df619b7
7
+ data.tar.gz: 9ac4bfb5c75387a15e33f01841c4845229169ad20fb8e66f4c891d943021f9043be5ebbdbb7ab66154dd25f70eda5018d172f1edd2a20cd8bf4b6a9c47a6fa6d
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
@@ -0,0 +1,61 @@
1
+ :plugin: extractnumbers
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
+ === Extractnumbers filter plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This filter automatically extracts all numbers found inside a string
24
+
25
+ This is useful when you have lines that don't match a grok pattern
26
+ or use json but you still need to extract numbers.
27
+
28
+ Each numbers is returned in a `@fields.intX` or `@fields.floatX` field
29
+ where X indicates the position in the string.
30
+
31
+ The fields produced by this filter are extra useful used in combination
32
+ with kibana number plotting features.
33
+
34
+ [id="plugins-{type}s-{plugin}-options"]
35
+ ==== Extractnumbers Filter Configuration Options
36
+
37
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
38
+
39
+ [cols="<,<,<",options="header",]
40
+ |=======================================================================
41
+ |Setting |Input type|Required
42
+ | <<plugins-{type}s-{plugin}-source>> |<<string,string>>|No
43
+ |=======================================================================
44
+
45
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
46
+ filter plugins.
47
+
48
+ &nbsp;
49
+
50
+ [id="plugins-{type}s-{plugin}-source"]
51
+ ===== `source`
52
+
53
+ * Value type is <<string,string>>
54
+ * Default value is `"message"`
55
+
56
+ The source field for the data. By default is message.
57
+
58
+
59
+
60
+ [id="plugins-{type}s-{plugin}-common-options"]
61
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-extractnumbers'
4
- s.version = '3.0.0'
4
+ s.version = '3.0.1'
5
5
  s.platform = 'java'
6
6
  s.licenses = ['Apache-2.0']
7
7
  s.summary = "This filter automatically extracts all numbers found inside a string"
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.require_paths = ["lib"]
13
13
 
14
14
  # Files
15
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
16
16
 
17
17
  # Tests
18
18
  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-extractnumbers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 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/extractnumbers.rb
60
61
  - logstash-filter-extractnumbers.gemspec
61
62
  - spec/filters/extractnumbers_spec.rb