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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d4433da6072fd01f6207e65b6e071efd797b9d8
4
- data.tar.gz: 33aa3e328fb5a598f9020d06228d41f1ae7ff024
3
+ metadata.gz: 34a18040e0fa5530c27ce8d12c322025d8561afe
4
+ data.tar.gz: b018fa343da365444fa30cc7351a9619bf15c49e
5
5
  SHA512:
6
- metadata.gz: eb0ee2d40e16a2a588d2a53c083136da510630d0d11c4f756b28541f10ff6b65fb2024a5d68c69a315764ffd4a6694075be5389effa0ce122eaecbc523ac9dc1
7
- data.tar.gz: 637e812843e305ca5e452cf43995d9e7d22af98fde4f98e514874283d526a27591aa6c2f40ea9a760b7780c3122ee0cc637c6b19fb4745a895f1b5895b8f1843
6
+ metadata.gz: 7cc5d1a36daf03c7d2623f2bcf57445134d431ce9676b5d293015f2588cd304bdb924117a383d2a2a4cbeb8d5bf9d22c93c1721f581a99a850cd38ad514cf5c1
7
+ data.tar.gz: 314cf3e3ab48533c1110ce3b0c3530aa954c31250ff2e046c8040ed39dcbe388acff0cbe181efc1d9637cb99ee3ff219bcd7f9be8a7cbada7319e0cef82d50f3
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+ gem "rake"
data/README.md CHANGED
@@ -5,7 +5,7 @@ Fluent parser plugin for Elasticsearch slow query log file.
5
5
  ##Installation
6
6
 
7
7
  ```shell
8
- $ gem install fluent-plugin-esslowquery
8
+ $ td-agent-gem install fluent-plugin-esslowquery
9
9
  ```
10
10
 
11
11
  ##How to use
@@ -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.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>.+)\], stats\[(?<stats>.*)\], search_type\[(?<search_type>.*)\], total_shards\[(?<total_shards>\d+)\], source\[(?<source_body>.*)\], extra_source\[(?<extra_source>.*)\]/
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.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-09-09 00:00:00.000000000 Z
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: