logstash-filter-grok 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile +6 -0
- data/docs/index.asciidoc +8 -0
- data/lib/logstash/filters/grok.rb +15 -5
- data/logstash-filter-grok.gemspec +1 -1
- data/spec/filters/grok_performance_spec.rb +150 -0
- data/spec/filters/grok_spec.rb +585 -683
- data/spec/spec_helper.rb +19 -0
- metadata +6 -2
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "logstash/devutils/rspec/spec_helper"
|
3
|
+
require "stud/temporary"
|
4
|
+
|
5
|
+
module LogStash::Environment
|
6
|
+
# running the grok code outside a logstash package means
|
7
|
+
# LOGSTASH_HOME will not be defined, so let's set it here
|
8
|
+
# before requiring the grok filter
|
9
|
+
unless self.const_defined?(:LOGSTASH_HOME)
|
10
|
+
LOGSTASH_HOME = File.expand_path("../../../", __FILE__)
|
11
|
+
end
|
12
|
+
|
13
|
+
# also :pattern_path method must exist so we define it too
|
14
|
+
unless self.method_defined?(:pattern_path)
|
15
|
+
def pattern_path(path)
|
16
|
+
::File.join(LOGSTASH_HOME, "patterns", path)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-grok
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,9 @@ files:
|
|
117
117
|
- docs/index.asciidoc
|
118
118
|
- lib/logstash/filters/grok.rb
|
119
119
|
- logstash-filter-grok.gemspec
|
120
|
+
- spec/filters/grok_performance_spec.rb
|
120
121
|
- spec/filters/grok_spec.rb
|
122
|
+
- spec/spec_helper.rb
|
121
123
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
122
124
|
licenses:
|
123
125
|
- Apache License (2.0)
|
@@ -145,4 +147,6 @@ signing_key:
|
|
145
147
|
specification_version: 4
|
146
148
|
summary: Parses unstructured event data into fields
|
147
149
|
test_files:
|
150
|
+
- spec/filters/grok_performance_spec.rb
|
148
151
|
- spec/filters/grok_spec.rb
|
152
|
+
- spec/spec_helper.rb
|