logstash-patterns-core 2.0.4 → 2.0.5
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 -1
- data/logstash-patterns-core.gemspec +1 -1
- data/spec/patterns/core_spec.rb +1 -1
- data/spec/spec_helper.rb +15 -2
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e57f7f8f8d7b1b4c4ff7a80f2074ec66c78cac77
|
4
|
+
data.tar.gz: 67769d4236905c4075363cd4a0c57e9123ddd373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc5f960939ea64e85de8b7e486012b083fc6a3bf2ff9135def526a9247fd6a89ba55e5d16ed31bfb6cfa5c7dceca9e16f31599896c352af5453436dd0ed0b423
|
7
|
+
data.tar.gz: 7538277148049ae02e816d4ccd41586fed61a8cf4bdffbbbf9a35d4793be965cd44cc5cba90279acaff4dd9c6db61d8d5262a10a7b1baf32346a4353e3e46a6f
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
# 2.0.5
|
2
|
+
- Specs fixes, see https://github.com/logstash-plugins/logstash-patterns-core/pull/137
|
1
3
|
# 2.0.4
|
2
4
|
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
3
5
|
# 2.0.3
|
4
6
|
- New dependency requirements for logstash-core for the 5.0 release
|
5
7
|
## 2.0.0
|
6
|
-
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
8
|
+
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
7
9
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
8
10
|
- Dependency on logstash-core update to 2.0
|
9
11
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-patterns-core'
|
4
|
-
s.version = '2.0.
|
4
|
+
s.version = '2.0.5'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Patterns to be used in logstash"
|
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/plugin install gemname. This gem is not a stand-alone program"
|
data/spec/patterns/core_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -5,7 +5,20 @@ require 'rspec/expectations'
|
|
5
5
|
# LOGSTASH_HOME will not be defined, so let's set it here
|
6
6
|
# before requiring the grok filter
|
7
7
|
unless LogStash::Environment.const_defined?(:LOGSTASH_HOME)
|
8
|
-
LogStash::Environment::LOGSTASH_HOME = File.expand_path("
|
8
|
+
LogStash::Environment::LOGSTASH_HOME = File.expand_path("../../", __FILE__)
|
9
|
+
end
|
10
|
+
|
11
|
+
# temporary fix to have the spec pass for an urgen mass-publish requirement.
|
12
|
+
# cut & pasted from the same tmp fix in the grok spec
|
13
|
+
# see https://github.com/logstash-plugins/logstash-filter-grok/issues/72
|
14
|
+
# this needs to be refactored and properly fixed
|
15
|
+
module LogStash::Environment
|
16
|
+
# also :pattern_path method must exist so we define it too
|
17
|
+
unless self.method_defined?(:pattern_path)
|
18
|
+
def pattern_path(path)
|
19
|
+
::File.join(LOGSTASH_HOME, "patterns", path)
|
20
|
+
end
|
21
|
+
end
|
9
22
|
end
|
10
23
|
|
11
24
|
require "logstash/filters/grok"
|
@@ -19,7 +32,7 @@ module GrokHelpers
|
|
19
32
|
end
|
20
33
|
|
21
34
|
def build_grok(label)
|
22
|
-
grok = LogStash::Filters::Grok.new("match" => ["message", "
|
35
|
+
grok = LogStash::Filters::Grok.new("match" => ["message", "%{#{label}}"])
|
23
36
|
grok.register
|
24
37
|
grok
|
25
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-patterns-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
@@ -11,47 +11,47 @@ cert_chain: []
|
|
11
11
|
date: 2016-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: logstash-core-plugin-api
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
14
20
|
requirement: !ruby/object:Gem::Requirement
|
15
21
|
requirements:
|
16
|
-
- -
|
22
|
+
- - ~>
|
17
23
|
- !ruby/object:Gem::Version
|
18
24
|
version: '1.0'
|
19
|
-
name: logstash-core-plugin-api
|
20
25
|
prerelease: false
|
21
26
|
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: logstash-devutils
|
22
29
|
version_requirements: !ruby/object:Gem::Requirement
|
23
30
|
requirements:
|
24
|
-
- -
|
31
|
+
- - '>='
|
25
32
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version: '0'
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
30
|
-
- -
|
36
|
+
- - '>='
|
31
37
|
- !ruby/object:Gem::Version
|
32
38
|
version: '0'
|
33
|
-
name: logstash-devutils
|
34
39
|
prerelease: false
|
35
40
|
type: :development
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: logstash-filter-grok
|
36
43
|
version_requirements: !ruby/object:Gem::Requirement
|
37
44
|
requirements:
|
38
|
-
- -
|
45
|
+
- - '>='
|
39
46
|
- !ruby/object:Gem::Version
|
40
47
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
48
|
requirement: !ruby/object:Gem::Requirement
|
43
49
|
requirements:
|
44
|
-
- -
|
50
|
+
- - '>='
|
45
51
|
- !ruby/object:Gem::Version
|
46
52
|
version: '0'
|
47
|
-
name: logstash-filter-grok
|
48
53
|
prerelease: false
|
49
54
|
type: :development
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
55
|
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
|
56
56
|
email: info@elastic.co
|
57
57
|
executables: []
|
@@ -107,12 +107,12 @@ require_paths:
|
|
107
107
|
- lib
|
108
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - '>='
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|