fluent-plugin-grok-parser 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-grok-parser.gemspec +1 -1
- data/lib/fluent/plugin/grok.rb +1 -1
- data/test/test_grok_parser.rb +15 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e7ec4c148e838be151b844b699354042ac1b9cbd040361c1888225e39fb92d2
|
4
|
+
data.tar.gz: 1007c3a3599f680fc9d0bbde5e0d0db644538120e3a8869351ac6cf9b9aea5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0babc9c8f455afa4da5cd79b9e356f1d7dc5783f6696a367b8b8b0030cfbeb15c003a69c3d2a53d1df9345ffaff037ec7e953cf50fd1d0dc82c426467acd2a3
|
7
|
+
data.tar.gz: 888e6f1cc43ddaa737743bda1007c152031587a67fc27d328f4ace2c671ff71eae1d32b8c50d00b7e261ed07f470269ee8d3a5a2b8f39ccfbfc24f98404742d7
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-grok-parser"
|
7
|
-
spec.version = "2.5.
|
7
|
+
spec.version = "2.5.1"
|
8
8
|
spec.authors = ["kiyoto", "Kenji Okimoto"]
|
9
9
|
spec.email = ["kiyoto@treasure-data.com", "okimoto@clear-code.com"]
|
10
10
|
spec.summary = %q{Fluentd plugin to support Logstash-inspired Grok format for parsing logs}
|
data/lib/fluent/plugin/grok.rb
CHANGED
data/test/test_grok_parser.rb
CHANGED
@@ -359,6 +359,21 @@ class GrokParserTest < ::Test::Unit::TestCase
|
|
359
359
|
assert_equal(event_time("28/Feb/2013:12:00:00 +0900", format: "%d/%b/%Y:%H:%M:%S %z"), time)
|
360
360
|
end
|
361
361
|
end
|
362
|
+
|
363
|
+
test "leading time type with following other type" do
|
364
|
+
d = create_driver(%[
|
365
|
+
<grok>
|
366
|
+
pattern \\[%{HTTPDATE:log_timestamp:time:%d/%b/%Y:%H:%M:%S %z}\\] %{GREEDYDATA:message}
|
367
|
+
</grok>
|
368
|
+
])
|
369
|
+
expected_record = {
|
370
|
+
"log_timestamp" => event_time("03/Feb/2019:06:47:21 +0530", format: "%d/%b/%Y:%H:%M:%S %z"),
|
371
|
+
"message" => "Python-urllib/2.7"
|
372
|
+
}
|
373
|
+
d.instance.parse('[03/Feb/2019:06:47:21 +0530] Python-urllib/2.7') do |time, record|
|
374
|
+
assert_equal(expected_record, record)
|
375
|
+
end
|
376
|
+
end
|
362
377
|
end
|
363
378
|
|
364
379
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-grok-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kiyoto
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03
|
12
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
rubygems_version: 3.0.
|
141
|
+
rubygems_version: 3.0.3
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Fluentd plugin to support Logstash-inspired Grok format for parsing logs
|