fluent-plugin-mysqlslowquery 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-mysqlslowquery.gemspec +1 -1
- data/lib/fluent/plugin/in_mysql_slow_query.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75100edeac9782ff961f7d66576de8efca61c10f
|
4
|
+
data.tar.gz: 32b8cb370fc59cf1f98ab81a7ee575fb4e2706a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1db3954cf4628f9f78d2f7a3eaec66443c1637ecc5f4e5511ef3e3dbc525f41d667521f9017c09542bf4c73e275345a38be899aa434fa4272de51ce0cc5f956
|
7
|
+
data.tar.gz: a6b4eeb21006a8cbdf8b3f3123862e76e7f529771d271094998f522498616657a6ef5116f6313df41ae654036fd0235dd232f6c6f6fce64aea2fb3e36779fd6f
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
12
12
|
gem.name = "fluent-plugin-mysqlslowquery"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = "0.0.
|
14
|
+
gem.version = "0.0.9"
|
15
15
|
gem.add_dependency "fluentd", [">= 0.12.0", "< 2"]
|
16
16
|
gem.add_dependency "myslog", "~> 0.0"
|
17
17
|
end
|
@@ -18,11 +18,11 @@ require "fluent/plugin/in_tail"
|
|
18
18
|
|
19
19
|
module Fluent::Plugin
|
20
20
|
|
21
|
-
class MySQLSlowQueryInput <
|
21
|
+
class MySQLSlowQueryInput < TailInput
|
22
22
|
Fluent::Plugin.register_input('mysql_slow_query', self)
|
23
23
|
|
24
|
-
def
|
25
|
-
|
24
|
+
def parser_create(conf)
|
25
|
+
return MySlog.new
|
26
26
|
end
|
27
27
|
|
28
28
|
def search_last_use_database
|
@@ -34,8 +34,8 @@ class MySQLSlowQueryInput < Fluent::Plugin::TailInput
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
def receive_lines(lines)
|
38
|
-
es = MultiEventStream.new
|
37
|
+
def receive_lines(lines, tail_watcher)
|
38
|
+
es = Fluent::MultiEventStream.new
|
39
39
|
@parser.divide(lines).each do |record|
|
40
40
|
begin
|
41
41
|
record = stringify_keys @parser.parse_record(record)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-mysqlslowquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuku Takahashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|