fluent-plugin-groonga-log 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49a815b60b5cbe5c0637fe104b094e19840647cc
|
4
|
+
data.tar.gz: 012e3b12d40c4249a0d064edec84b635cbf9f512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c60b424ab6a853089565b4da1d0b5846fd506b14fae61cb6b30461813a09524511985c83d18f9b3d93e11674c22cc8f2e3091c334b310195c3195eb0397f584
|
7
|
+
data.tar.gz: db06b7cddc5cac2368de71f152b5c9b50d261ccb32dd5aa1ab37b13a51e0bb37f45dd9cf332cd12357d3bf5dfe1379c756eced6736be6161e67bffe704edcd32
|
@@ -3,12 +3,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "fluent-plugin-groonga-log"
|
6
|
-
spec.version = "0.1.
|
6
|
+
spec.version = "0.1.1"
|
7
7
|
spec.authors = ["Yasuhiro Horimoto"]
|
8
8
|
spec.email = ["horimoto@clear-code.com"]
|
9
9
|
|
10
|
-
spec.summary =
|
11
|
-
spec.description =
|
10
|
+
spec.summary = "Fluentd plugin to parse Groonga's log."
|
11
|
+
spec.description = "You can detect Groonga error in real time by using this plugin."
|
12
12
|
spec.homepage = "https://github.com/groonga/fluent-plugin-groonga-log.git"
|
13
13
|
spec.license = "LGPL-3"
|
14
14
|
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "rake", "~> 12.0"
|
25
25
|
spec.add_development_dependency "test-unit", "~> 3.0"
|
26
26
|
spec.add_runtime_dependency "fluentd", [">= 0.14.10", "< 2"]
|
27
|
-
spec.add_runtime_dependency "groonga-log"
|
27
|
+
spec.add_runtime_dependency "groonga-log", ">= 0.1.1"
|
28
28
|
end
|
@@ -33,10 +33,12 @@ module Fluent
|
|
33
33
|
|
34
34
|
def parse(text)
|
35
35
|
@parser.parse(text) do |statistic|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
event_time = Fluent::EventTime.from_time(statistic.timestamp)
|
37
|
+
record = {}
|
38
|
+
statistic.each_pair do |member, value|
|
39
|
+
record[member.to_s] = value
|
40
|
+
end
|
41
|
+
yield event_time, record
|
40
42
|
end
|
41
43
|
end
|
42
44
|
end
|
@@ -13,13 +13,7 @@ class GroongaLogParserTest < Test::Unit::TestCase
|
|
13
13
|
@parser.instance.parse(log) do |time, record|
|
14
14
|
timestamp = Time.local(2017, 7, 19, 14, 41, 5, 663978)
|
15
15
|
expected = {
|
16
|
-
"
|
17
|
-
"month" => 7,
|
18
|
-
"day" => 19,
|
19
|
-
"hour" => 14,
|
20
|
-
"minute" => 41,
|
21
|
-
"second" => 5,
|
22
|
-
"micro_second" => 663978,
|
16
|
+
"timestamp" => timestamp,
|
23
17
|
"log_level" => :notice,
|
24
18
|
"context_id" => "18c61700",
|
25
19
|
"message" => "spec:2:update:Object:32(type):8",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-groonga-log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuhiro Horimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,15 +78,15 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: 0.1.1
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
89
|
-
description:
|
88
|
+
version: 0.1.1
|
89
|
+
description: You can detect Groonga error in real time by using this plugin.
|
90
90
|
email:
|
91
91
|
- horimoto@clear-code.com
|
92
92
|
executables: []
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.5.2
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Fluentd plugin to parse Groonga's log.
|