fluent-plugin-esslowquery 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/fluent-plugin-esslowquery.gemspec +1 -1
- data/lib/fluent/plugin/parser_es_slow_query.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a18040e0fa5530c27ce8d12c322025d8561afe
|
4
|
+
data.tar.gz: b018fa343da365444fa30cc7351a9619bf15c49e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cc5d1a36daf03c7d2623f2bcf57445134d431ce9676b5d293015f2588cd304bdb924117a383d2a2a4cbeb8d5bf9d22c93c1721f581a99a850cd38ad514cf5c1
|
7
|
+
data.tar.gz: 314cf3e3ab48533c1110ce3b0c3530aa954c31250ff2e046c8040ed39dcbe388acff0cbe181efc1d9637cb99ee3ff219bcd7f9be8a7cbada7319e0cef82d50f3
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -11,6 +11,6 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
12
12
|
gem.name = "fluent-plugin-esslowquery"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = "1.0.
|
14
|
+
gem.version = "1.0.1"
|
15
15
|
gem.add_dependency "fluentd", [">= 0.12.0", "< 2"]
|
16
16
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fluent
|
2
2
|
class ElasticsearchSlowLogParser < Parser
|
3
|
-
REGEXP = /^\[(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3})\]\[(?<severity>[a-zA-Z]+)\]\[(?<source>\S+)\] \[(?<node>\S+)\] \[(?<index>\w+)\]\[(?<shard>\d+)\] took\[(?<took>.+)\], took_millis\[(?<took_millis>\d+)\], types\[(?<types
|
3
|
+
REGEXP = /^\[(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3})\]\[(?<severity>[a-zA-Z]+)\]\[(?<source>\S+)\] \[(?<node>\S+)\] \[(?<index>\w+)\]\[(?<shard>\d+)\] took\[(?<took>.+)\], took_millis\[(?<took_millis>\d+)\], types\[(?<types>.*)\], stats\[(?<stats>.*)\], search_type\[(?<search_type>.*)\], total_shards\[(?<total_shards>\d+)\], source\[(?<source_body>.*)\], extra_source\[(?<extra_source>.*)\]/
|
4
4
|
TIME_FORMAT = "%Y-%m-%d %H:%M:%S,%N"
|
5
5
|
|
6
6
|
Plugin.register_parser("es_slow_query", self)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-esslowquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boguslaw Mista
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -68,4 +68,3 @@ signing_key:
|
|
68
68
|
specification_version: 4
|
69
69
|
summary: Fluent parser plugin for Elasticsearch slow query log file.
|
70
70
|
test_files: []
|
71
|
-
has_rdoc:
|