logstash-filter-elasticsearchslowlog 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fb0e1037440cf9d6b2db6dc90728e4e627bac26f466ef83943c14a8851cc30a3
4
+ data.tar.gz: cc41cdd170f761773c804c0b2125a9bfe7cf24ab2a78f8bc45f8ea93454a85d7
5
+ SHA512:
6
+ metadata.gz: 446ee3e16ee320630352c2205db4ebf43fdf1cd2f231b14a8d2a5a38ae8934ffdf2e0f22df9da06a5b6a3a84960cfc8ef0cb0ba50746a88f989aef42e2c59d78
7
+ data.tar.gz: f6dd7c9bce4342e5009e4e5b20d23698278376598df474292ca1999c4f32c5360db01b484c9122b4b4f17eb5ec96c101e586a1b68fc17fe7926bf8a50600e9bd
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
data/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ Licensed under the Apache License, Version 2.0 (the "License");
2
+ you may not use this file except in compliance with the License.
3
+ You may obtain a copy of the License at
4
+
5
+ http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # Elasticsearch Slowlog Logstash Plugin [![Build
2
+ Status](https://travis-ci.org/ananthakumaran/logstash-filter-elasticsearchslowlog.svg?branch=master)](http://travis-ci.org/ananthakumaran/logstash-filter-elasticsearchslowlog)
3
+
4
+ ## Installation
5
+
6
+ ```
7
+ logstash-plugin install logstash-filter-elasticsearchslowlog
8
+ ```
9
+
10
+ ## Sample Configuration
11
+
12
+ ```
13
+ filter {
14
+ elasticsearchslowlog {
15
+ }
16
+
17
+ date {
18
+ match => ["local_timestamp", "ISO8601"]
19
+ timezone => "Asia/Jakarta"
20
+ }
21
+ }
22
+ ```
23
+
24
+ ## What is it?
25
+
26
+ Given a slowlog source message like
27
+
28
+ ```
29
+ [2017-09-10T12:35:53,355][WARN ][index.search.slowlog.fetch] [GOgO9TD]
30
+ [testindex-slowlogs][0] took[150.6micros], took_millis[0], types[],
31
+ stats[], search_type[QUERY_THEN_FETCH], total_shards[5],
32
+ source[{\"query\":{\"match\":{\"name\":{\"query\":\"Nariko\",\"operator\":\"OR\",\"prefix_length\":0,\"max_expansions\":50,\"fuzzy_transpositions\":true,\"lenient\":false,\"zero_terms_query\":\"NONE\",\"boost\":1.0}}},\"sort\":[{\"price\":{\"order\":\"desc\"}}]}]
33
+ ```
34
+
35
+ the filter will parse and add the parsed fields to the event. In
36
+ addition, it will also add `source_normalized` field, which is same as
37
+ `source` except all the query params are replaced with `?`. This will
38
+ help with grouping same queries with different params. A md5 hash of
39
+ the normalized source is added as `source_id` field.
40
+
41
+ ```
42
+ {
43
+ "node" => "GOgO9TD",
44
+ "shard" => 0,
45
+ "source" => "{\"query\":{\"match\":{\"name\":{\"query\":\"Nariko\",\"operator\":\"OR\",\"prefix_length\":0,\"max_expansions\":50,\"fuzzy_transpositions\":true,\"lenient\":false,\"zero_terms_query\":\"NONE\",\"boost\":1.0}}},\"sort\":[{\"price\":{\"order\":\"desc\"}}]}",
46
+ "message" => "[2017-09-10T12:35:53,355][WARN ][index.search.slowlog.fetch] [GOgO9TD] [testindex-slowlogs][0] took[150.6micros], took_millis[0], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{\"query\":{\"match\":{\"name\":{\"query\":\"Nariko\",\"operator\":\"OR\",\"prefix_length\":0,\"max_expansions\":50,\"fuzzy_transpositions\":true,\"lenient\":false,\"zero_terms_query\":\"NONE\",\"boost\":1.0}}},\"sort\":[{\"price\":{\"order\":\"desc\"}}]}]",
47
+ "took" => "150.6micros",
48
+ "stats" => "",
49
+ "level" => "WARN",
50
+ "@version" => "1",
51
+ "index" => "testindex-slowlogs",
52
+ "local_timestamp" => "2017-09-10T12:35:53",
53
+ "@timestamp" => 2017-09-10T05:35:53.000Z,
54
+ "host" => "Ananthas-MacBook-Pro.local",
55
+ "total_shards" => 5,
56
+ "source_normalized" => "{\"query\":{\"match\":{\"name\":{\"boost\":1.0,\"fuzzy_transpositions\":true,\"lenient\":false,\"max_expansions\":50,\"operator\":\"OR\",\"prefix_length\":0,\"query\":\"?\",\"zero_terms_query\":\"NONE\"}}},\"sort\":[{\"price\":{\"order\":\"desc\"}}]}",
57
+ "source_id" => "289972b28",
58
+ "types" => "",
59
+ "search_type" => "QUERY_THEN_FETCH",
60
+ "took_millis" => 0
61
+ }
62
+ ```
@@ -0,0 +1,170 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "logstash/filters/base"
4
+ require "json"
5
+ require "deepsort"
6
+
7
+ class LogStash::Filters::Elasticsearchslowlog < LogStash::Filters::Base
8
+ #
9
+ # filter {
10
+ # elasticsearchslowlog {
11
+ # }
12
+ # }
13
+ #
14
+ config_name "elasticsearchslowlog"
15
+
16
+ # The field to perform filter
17
+ #
18
+ # Example, to use the @message field (default) :
19
+ # [source,ruby]
20
+ # filter { elasticsearchslowlog { source => "message" } }
21
+ config :source, validate: :string, default: "message"
22
+
23
+ def register
24
+ # Add instance variables
25
+ end
26
+
27
+ SLOWLOG_REGEX = /^\s*\[(?<local_timestamp>[^,]+),\d+\]\s*\[(?<level>.+?)\s*\]\s*\[index.search.slowlog.(?:query|fetch)\]\s*\[(?<node>.+?)\]\s*\[(?<index>.+?)\]\s*\[(?<shard>.+?)\]\s*(?<key_values>.+)$/.freeze
28
+
29
+ def filter(event)
30
+ message = event.get(@source)
31
+ if message
32
+ if matches = message.match(SLOWLOG_REGEX)
33
+ captures = matches.names.zip(matches.captures).to_h
34
+ captures.each do |key, value|
35
+ next if key == 'key_values'
36
+
37
+ if ['shard'].include?(key)
38
+ value = value.to_i
39
+ end
40
+ event.set(key, value)
41
+ end
42
+ if captures['key_values']
43
+ key_values = parse_key_values(captures['key_values'])
44
+ key_values.each do |key, value|
45
+ if ['took_millis', 'total_shards'].include?(key)
46
+ value = value.to_i
47
+ end
48
+ event.set(key, value)
49
+ end
50
+
51
+ source = key_values['source']
52
+ if source
53
+ normalized = normalize_source(source)
54
+ if normalized
55
+ normalized = JSON.dump(normalized)
56
+ source_id = Digest::MD5.hexdigest(normalized)[0..8]
57
+ event.set('source_normalized', normalized)
58
+ event.set('source_id', source_id)
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
64
+
65
+ filter_matched(event)
66
+ end
67
+
68
+ private
69
+
70
+ def parse_key_values(kv)
71
+ state = :name
72
+ result = {}
73
+ name_start = 0
74
+ value_start = 0
75
+ open_brackets = 0
76
+ name = nil
77
+ pos = 0
78
+ while pos < kv.length
79
+ char = kv[pos]
80
+ case state
81
+ when :name
82
+ if char == '['
83
+ name = kv[name_start..pos - 1]
84
+ value_start = pos + 1
85
+ state = :value
86
+ end
87
+ when :value
88
+ if char == ']' && open_brackets.zero?
89
+ result[name] = kv[value_start..pos - 1]
90
+ pos += 2
91
+ state = :name
92
+ name_start = pos + 1
93
+ elsif char == ']'
94
+ open_brackets -= 1
95
+ elsif char == '['
96
+ open_brackets += 1
97
+ end
98
+ end
99
+ pos += 1
100
+ end
101
+ result
102
+ end
103
+
104
+ def normalize_source(source)
105
+ source = JSON.parse(source)
106
+ source.delete("from")
107
+ source.delete("size")
108
+ clean_params(source["query"])
109
+ clean_params(source["aggregations"])
110
+ source.deep_sort
111
+ rescue JSON::ParserError
112
+ nil
113
+ end
114
+
115
+ def clean_params(query)
116
+ if query.is_a?(Array)
117
+ query.each { |q| clean_params(q) }
118
+ elsif query.is_a?(Hash)
119
+ if query.key?('term')
120
+ delete_path(query, ['term', '*', 'value'])
121
+ elsif query.key?('terms')
122
+ delete_path(query, ['terms', '*'])
123
+ elsif query.key?('wildcard')
124
+ delete_path(query, ['wildcard', '*', 'wildcard'])
125
+ elsif query.key?('range')
126
+ delete_path(query, ['range', '*', 'from'])
127
+ delete_path(query, ['range', '*', 'to'])
128
+ elsif query.key?('match')
129
+ delete_path(query, ['match', '*', 'query'])
130
+ elsif query.key?('exists')
131
+ delete_path(query, ['exists', 'field'])
132
+ elsif query.key?('date_histogram')
133
+ delete_path(query, ['date_histogram', 'extended_bounds', 'max'])
134
+ delete_path(query, ['date_histogram', 'extended_bounds', 'min'])
135
+ elsif query.key?('prefix')
136
+ delete_path(query, ['prefix', '*', 'value'])
137
+ elsif query.key?('regexp')
138
+ delete_path(query, ['regexp', '*', 'value'])
139
+ elsif query.key?('fuzzy')
140
+ delete_path(query, ['fuzzy', '*', 'value'])
141
+ elsif query.key?('ids')
142
+ delete_path(query, ['ids', 'values'])
143
+ elsif query.key?('parent_id')
144
+ delete_path(query, ['parent_id', 'id'])
145
+ end
146
+ query.each { |_k, v| clean_params(v) }
147
+ end
148
+ end
149
+
150
+ def delete_path(object, path)
151
+ if !path.empty? && object
152
+ head, *tail = path
153
+ if !tail.empty? && head == "*"
154
+ if object.is_a?(Array)
155
+ object.each { |v| delete_path(v, tail) }
156
+ elsif object.is_a?(Hash)
157
+ object.each { |_k, v| delete_path(v, tail) }
158
+ end
159
+ elsif tail.empty? && head == "*"
160
+ if object.is_a?(Hash)
161
+ object.each { |k, _v| object[k] = "?" }
162
+ end
163
+ elsif !tail.empty? && object.is_a?(Hash)
164
+ delete_path(object[head], tail)
165
+ elsif tail.empty? && object.is_a?(Hash)
166
+ object[head] = "?"
167
+ end
168
+ end
169
+ end
170
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'logstash-filter-elasticsearchslowlog'
5
+ s.version = '0.1.0'
6
+ s.licenses = ['Apache-2.0']
7
+ s.summary = 'elasticsearch slowlog parser'
8
+ s.description = 'elasticsearch slowlog parser'
9
+ s.homepage = 'https://github.com/ananthakumaran/logstash-filter-elasticsearchslowlog'
10
+ s.authors = ['Anantha Kumaran']
11
+ s.email = 'ananthakumaran@gmail.com'
12
+ s.require_paths = ['lib']
13
+
14
+ # Files
15
+ s.files = Dir['lib/**/*', 'spec/**/*', 'vendor/**/*', '*.gemspec', '*.md', 'CONTRIBUTORS', 'Gemfile', 'LICENSE', 'NOTICE.TXT']
16
+ # Tests
17
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
+
19
+ # Special flag to let us know this is actually a logstash plugin
20
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
21
+
22
+ # Gem dependencies
23
+ s.add_runtime_dependency "deepsort", "~> 0.4"
24
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
25
+ s.add_development_dependency 'logstash-devutils'
26
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ require_relative '../spec_helper'
3
+ require "logstash/filters/elasticsearchslowlog"
4
+
5
+ describe LogStash::Filters::Elasticsearchslowlog do
6
+ let(:config) do <<-CONFIG
7
+ filter {
8
+ elasticsearchslowlog {
9
+ }
10
+ }
11
+ CONFIG
12
+ end
13
+
14
+
15
+ describe "filter" do
16
+ sample("message" => "some text") do
17
+ expect(subject.get('message')).to eq('some text')
18
+ end
19
+
20
+ sample("message" => '[2019-05-07T15:27:34,422][TRACE ][index.search.slowlog.query] [elasticsearch-data7.mid.veritrans.co.id] [transactionsv3_2018-12][2] took[350.9ms], took_millis[350], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":20,"query":{"bool":{"filter":[{"terms":{"transaction.merchant_id":["abcd"],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],') do
21
+ expect(subject.get('local_timestamp')).to eq('2019-05-07T15:27:34')
22
+ expect(subject.get('level')).to eq('TRACE')
23
+ expect(subject.get('node')).to eq('elasticsearch-data7.mid.veritrans.co.id')
24
+ expect(subject.get('index')).to eq('transactionsv3_2018-12')
25
+ expect(subject.get('shard')).to eq(2)
26
+ expect(subject.get('took_millis')).to eq(350)
27
+ expect(subject.get('types')).to eq('transaction')
28
+ expect(subject.get('search_type')).to eq('QUERY_THEN_FETCH')
29
+ expect(subject.get('total_shards')).to eq(111)
30
+ expect(subject.get('source')).to eq('{"from":0,"size":20,"query":{"bool":{"filter":[{"terms":{"transaction.merchant_id":["abcd"],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}')
31
+ expect(subject).to include('source_id')
32
+ end
33
+ end
34
+
35
+ messages = IO.read(File.join(__dir__, 'fixture_valid.txt')).split("\n")
36
+ source_normalized = IO.read(File.join(__dir__, 'fixture_source_normalized.txt')).split("\n")
37
+ messages.each_with_index do |message, i|
38
+ describe "fixtures_valid #{i}" do
39
+ sample('message' => message) do
40
+ expect(subject).to include('message')
41
+ expect(subject).to include('local_timestamp')
42
+ expect(subject).to include('level')
43
+ expect(subject).to include('node')
44
+ expect(subject).to include('index')
45
+ expect(subject).to include('shard')
46
+ expect(subject).to include('took_millis')
47
+ expect(subject).to include('types')
48
+ expect(subject).to include('search_type')
49
+ expect(subject).to include('total_shards')
50
+ expect(subject).to include('source')
51
+ expect(subject).to include('source_id')
52
+ unless subject.get('source_normalized') == source_normalized[i]
53
+ puts subject.get('source_normalized')
54
+ end
55
+ expect(subject.get('source_normalized')).to eq(source_normalized[i])
56
+ end
57
+ end
58
+ end
59
+
60
+ invalid_messages = IO.read(File.join(__dir__, 'fixture_invalid.txt')).split("\n")
61
+ invalid_messages.each_with_index do |message, i|
62
+ describe "fixtures_invalid #{i}" do
63
+ sample('message' => message) do
64
+ expect(subject).to include('message')
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,3 @@
1
+ [2019-05-07T17:40:31,563][INFO ][o.e.m.j.JvmGcMonitorService] [elasticsearch-data5.mid.veritrans.co.id] [gc][21591827] overhead, spent [286ms] collecting in the last [1s]
2
+ [2019-05-07T14:24:33,982][WARN ][index.search.slowlog.query] [elasticsearch-data5.mid.veritrans.co.id] [transactionsv3_2018-10][2] took[1.1s], took_millis[1141], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":20,"query":{"bool":{"filter":[{"terms":{"transaction.merchant_id":["M105477"],"boost":1.0}},{"range":{"transaction.gross_amount":{"from":88372800,"to":null,"include_lower":true,"include_upper":true,"boost":1.0}}},{"range":{"transaction.gross_amount":{"from":null,"to":88372800,"include_lower":true,"include_upper":true,"boost":1.0}}},{"term":{"transaction.currency":{"value":"IDR","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_tim],
3
+ [2017-09-10T12:35:53,352][WARN ][index.search.slowlog.query] [GOgO9TD] [testindex-slowlogs][1] took[197.6micros], took_millis[0], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"name":{"query":"Nariko","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","boost":1.0}}},"sort":[{"price":{"order":"desc"}]}],
@@ -0,0 +1,18 @@
1
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"wildcard":{"transaction.order_id.downcase":{"boost":1.0,"wildcard":"?"}}}]}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
2
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"wildcard":{"transaction.order_id.downcase":{"boost":1.0,"wildcard":"?"}}}]}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
3
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"terms":{"boost":"?","transaction.merchant_id":"?"}}]}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
4
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"wildcard":{"transaction.order_id.downcase":{"boost":1.0,"wildcard":"?"}}}]}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
5
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"wildcard":{"transaction.order_id.downcase":{"boost":1.0,"wildcard":"?"}}}]}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
6
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"range":{"transaction.gross_amount":{"boost":1.0,"from":"?","include_lower":true,"include_upper":true,"to":"?"}}},{"range":{"transaction.gross_amount":{"boost":1.0,"from":"?","include_lower":true,"include_upper":true,"to":"?"}}},{"term":{"transaction.currency":{"boost":1.0,"value":"?"}}},{"terms":{"boost":"?","transaction.merchant_id":"?"}}]}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
7
+ {"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
8
+ {"query":{"match":{"name":{"boost":1.0,"fuzzy_transpositions":true,"lenient":false,"max_expansions":50,"operator":"OR","prefix_length":0,"query":"?","zero_terms_query":"NONE"}}},"sort":[{"price":{"order":"desc"}}]}
9
+ {"query":{"match":{"name":{"boost":1.0,"fuzzy_transpositions":true,"lenient":false,"max_expansions":50,"operator":"OR","prefix_length":0,"query":"?","zero_terms_query":"NONE"}}},"sort":[{"price":{"order":"desc"}}]}
10
+ {"query":{"match":{"name":{"boost":1.0,"fuzzy_transpositions":true,"lenient":false,"max_expansions":50,"operator":"OR","prefix_length":0,"query":"?","zero_terms_query":"NONE"}}},"sort":[{"price":{"order":"desc"}}]}
11
+ {"query":{"match":{"name":{"boost":1.0,"fuzzy_transpositions":true,"lenient":false,"max_expansions":50,"operator":"OR","prefix_length":0,"query":"?","zero_terms_query":"NONE"}}},"sort":[{"price":{"order":"desc"}}]}
12
+ {"query":{"match":{"name":{"boost":1.0,"fuzzy_transpositions":true,"lenient":false,"max_expansions":50,"operator":"OR","prefix_length":0,"query":"?","zero_terms_query":"NONE"}}},"sort":[{"price":{"order":"desc"}}]}
13
+ {"query":{"match":{"name":{"boost":1.0,"fuzzy_transpositions":true,"lenient":false,"max_expansions":50,"operator":"OR","prefix_length":0,"query":"?","zero_terms_query":"NONE"}}},"sort":[{"price":{"order":"desc"}}]}
14
+ {"aggregations":{"bank_transfers":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filters":{"filters":{"bca":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"nested":{"boost":1.0,"ignore_unmapped":false,"path":"virtual_accounts","query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"virtual_accounts.bank":{"boost":1.0,"value":"?"}}}]}},"score_mode":"avg"}},{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}]}},"permata":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"nested":{"boost":1.0,"ignore_unmapped":false,"path":"virtual_accounts","query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"virtual_accounts.bank":{"boost":1.0,"value":"?"}}}]}},"score_mode":"avg"}},{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}]}}},"other_bucket":false,"other_bucket_key":"_other_"}},"by_merchant":{"aggregations":{"bank_transfer_payments":{"aggregations":{"bank_denied":{"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}],"must_not":[{"term":{"transaction.fraud_status":{"boost":1.0,"value":"?"}}}]}}},"canceled":{"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}},"settlement_amount":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}}},"filters":{"filters":{"bca":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"nested":{"boost":1.0,"ignore_unmapped":false,"path":"virtual_accounts","query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"virtual_accounts.bank":{"boost":1.0,"value":"?"}}}]}},"score_mode":"avg"}},{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}}]}},"permata":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"nested":{"boost":1.0,"ignore_unmapped":false,"path":"virtual_accounts","query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"virtual_accounts.bank":{"boost":1.0,"value":"?"}}}]}},"score_mode":"avg"}},{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}}]}}},"other_bucket":false,"other_bucket_key":"_other_"}},"credit_card_payments":{"aggregations":{"by_banks":{"aggregations":{"bank_denied":{"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}],"must_not":[{"term":{"transaction.fraud_status":{"boost":1.0,"value":"?"}}}]}}},"canceled":{"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}},"settlement_amount":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}}},"terms":{"field":"?","min_doc_count":"?","order":"?","shard_min_doc_count":"?","show_term_doc_count_error":"?","size":"?"}}},"filter":{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}}},"other_payments":{"aggregations":{"per_payment_type":{"aggregations":{"bank_denied":{"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}],"must_not":[{"term":{"transaction.fraud_status":{"boost":1.0,"value":"?"}}}]}}},"canceled":{"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}},"settlement_amount":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}}},"terms":{"field":"?","min_doc_count":"?","order":"?","shard_min_doc_count":"?","show_term_doc_count_error":"?","size":"?"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must_not":[{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}}]}}}},"terms":{"field":"?","min_doc_count":"?","order":"?","shard_min_doc_count":"?","show_term_doc_count_error":"?","size":"?"}},"credit_card_banks":{"aggregations":{"by_banks":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"terms":{"field":"?","min_doc_count":"?","order":"?","shard_min_doc_count":"?","show_term_doc_count_error":"?","size":"?"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}]}}},"other_payments":{"aggregations":{"by_payment_type":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"terms":{"field":"?","min_doc_count":"?","order":"?","shard_min_doc_count":"?","show_term_doc_count_error":"?","size":"?"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}],"must_not":[{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}}]}}},"transaction_deny_by_bank":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}],"must_not":[{"term":{"transaction.fraud_status":{"boost":1.0,"value":"?"}}}]}}},"transactions_by_status":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"terms":{"field":"?","min_doc_count":"?","order":"?","shard_min_doc_count":"?","show_term_doc_count_error":"?","size":"?"}},"transactions_cancel":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}},"transactions_challange":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"term":{"transaction.fraud_status":{"boost":1.0,"value":"?"}}}},"transactions_deny_by_fds":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"term":{"transaction.fraud_status":{"boost":1.0,"value":"?"}}}},"transactions_settlement":{"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}},"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}}},"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"match_none":{"boost":1.0}}]}}}
15
+ {"aggregations":{"brand":{"sum":{"field":"transaction.real_gross_amount"}},"by_merchant":{"aggregations":{"total":{"sum":{"field":"transaction.real_gross_amount"}}},"terms":{"field":"?","min_doc_count":"?","order":"?","shard_min_doc_count":"?","show_term_doc_count_error":"?","size":"?"}},"goresto":{"aggregations":{"total":{"sum":{"field":"transaction.real_gross_amount"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"term":{"source":{"boost":1.0,"value":"?"}}}]}}}},"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"match":{"transaction.payment_type":{"boost":1.0,"fuzzy_transpositions":true,"lenient":false,"max_expansions":50,"operator":"OR","prefix_length":0,"query":"?","zero_terms_query":"NONE"}}},{"match_none":{"boost":1.0}},{"range":{"transaction.transaction_time":{"boost":1.0,"from":"?","include_lower":true,"include_upper":true,"to":"?"}}},{"term":{"transaction.merchant_id":{"boost":1.0,"value":"?"}}}]}},{"terms":{"boost":"?","transaction.merchant_id":"?"}}]}}}
16
+ {"aggregations":{"current":{"aggregations":{"monitoring_failed":{"aggregations":{"per_half_hour":{"date_histogram":{"extended_bounds":{"max":"?","min":"?"},"field":"transaction.transaction_time","interval":"30m","keyed":true,"min_doc_count":0,"offset":0,"order":{"_key":"asc"},"time_zone":"+07:00"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must_not":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"terms":{"boost":"?","transaction.fraud_status":"?"}}]}},{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must_not":[{"exists":{"boost":1.0,"field":"?"}}]}}]}},{"terms":{"boost":"?","transaction.status":"?"}}]}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}]}}]}}},"monitoring_pending":{"aggregations":{"per_half_hour":{"date_histogram":{"extended_bounds":{"max":"?","min":"?"},"field":"transaction.transaction_time","interval":"30m","keyed":true,"min_doc_count":0,"offset":0,"order":{"_key":"asc"},"time_zone":"+07:00"}}},"filter":{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}},"monitoring_successfull":{"aggregations":{"per_half_hour":{"date_histogram":{"extended_bounds":{"max":"?","min":"?"},"field":"transaction.transaction_time","interval":"30m","keyed":true,"min_doc_count":0,"offset":0,"order":{"_key":"asc"},"time_zone":"+07:00"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"terms":{"boost":"?","transaction.fraud_status":"?"}}]}},{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must_not":[{"exists":{"boost":1.0,"field":"?"}}]}}]}},{"terms":{"boost":"?","transaction.status":"?"}}]}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}]}}}},"filter":{"range":{"transaction.transaction_time":{"boost":1.0,"from":"?","include_lower":false,"include_upper":true,"to":"?"}}}},"last_week":{"aggregations":{"monitoring_failed":{"aggregations":{"per_half_hour":{"date_histogram":{"extended_bounds":{"max":"?","min":"?"},"field":"transaction.transaction_time","interval":"30m","keyed":true,"min_doc_count":0,"offset":0,"order":{"_key":"asc"},"time_zone":"+07:00"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must_not":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"terms":{"boost":"?","transaction.fraud_status":"?"}}]}},{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must_not":[{"exists":{"boost":1.0,"field":"?"}}]}}]}},{"terms":{"boost":"?","transaction.status":"?"}}]}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}]}}]}}},"monitoring_successfull":{"aggregations":{"per_half_hour":{"date_histogram":{"extended_bounds":{"max":"?","min":"?"},"field":"transaction.transaction_time","interval":"30m","keyed":true,"min_doc_count":0,"offset":0,"order":{"_key":"asc"},"time_zone":"+07:00"}}},"filter":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"terms":{"boost":"?","transaction.fraud_status":"?"}}]}},{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must_not":[{"exists":{"boost":1.0,"field":"?"}}]}}]}},{"terms":{"boost":"?","transaction.status":"?"}}]}},{"term":{"transaction.status":{"boost":1.0,"value":"?"}}}]}}}},"filter":{"range":{"transaction.transaction_time":{"boost":1.0,"from":"?","include_lower":false,"include_upper":true,"to":"?"}}}}},"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"must":[{"term":{"acquiring_bank":{"boost":1.0,"value":"?"}}},{"term":{"transaction.payment_type":{"boost":1.0,"value":"?"}}}]}}}
17
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"term":{"transaction.currency":{"boost":1.0,"value":"?"}}},{"terms":{"boost":"?","transaction.merchant_id":"?"}}],"must":[{"prefix":{"transaction.order_id.downcase":{"boost":1.0,"value":"?"}}}]}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}
18
+ {"query":{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"filter":[{"bool":{"adjust_pure_negative":true,"boost":1.0,"disable_coord":false,"should":[{"terms":{"boost":"?","parent_transaction_id":"?"}},{"terms":{"boost":"?","transaction_id":"?"}}]}},{"type":{"boost":1.0,"value":"share"}}]}}}
@@ -0,0 +1,18 @@
1
+ [2019-05-07T17:34:38,523][INFO ][index.search.slowlog.query] [elasticsearch-data4.mid.veritrans.co.id] [transactionsv3_2018-12][1] took[939.7ms], took_millis[939], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":30,"query":{"bool":{"filter":[{"wildcard":{"transaction.order_id.downcase":{"wildcard":"*300180072*","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
2
+ [2019-05-07T17:06:33,105][DEBUG][index.search.slowlog.query] [elasticsearch-data6.mid.veritrans.co.id] [transactionsv3_2018-09][2] took[530.5ms], took_millis[530], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":30,"query":{"bool":{"filter":[{"wildcard":{"transaction.order_id.downcase":{"wildcard":"*8530184765519*","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
3
+ [2019-05-07T14:56:57,175][TRACE][index.search.slowlog.query] [elasticsearch-data9.mid.veritrans.co.id] [transactionsv3_2018-12][0] took[330.2ms], took_millis[330], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":20,"query":{"bool":{"filter":[{"terms":{"transaction.merchant_id":["12345"],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
4
+ [2019-05-07T14:54:39,788][WARN ][index.search.slowlog.query] [elasticsearch-data9.mid.veritrans.co.id] [transactionsv3_2018-11][0] took[1.2s], took_millis[1292], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":30,"query":{"bool":{"filter":[{"wildcard":{"transaction.order_id.downcase":{"wildcard":"*TKP386647437*","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
5
+ [2019-05-07T14:42:29,510][WARN ][index.search.slowlog.query] [elasticsearch-data8.mid.veritrans.co.id] [transactionsv3_2018-09][1] took[1s], took_millis[1028], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":30,"query":{"bool":{"filter":[{"wildcard":{"transaction.order_id.downcase":{"wildcard":"*BL1912T1NOKHINV*","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
6
+ [2019-05-07T14:24:33,982][WARN ][index.search.slowlog.query] [elasticsearch-data5.mid.veritrans.co.id] [transactionsv3_2018-10][2] took[1.1s], took_millis[1141], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":20,"query":{"bool":{"filter":[{"terms":{"transaction.merchant_id":["12345"],"boost":1.0}},{"range":{"transaction.gross_amount":{"from":88372800,"to":null,"include_lower":true,"include_upper":true,"boost":1.0}}},{"range":{"transaction.gross_amount":{"from":null,"to":88372800,"include_lower":true,"include_upper":true,"boost":1.0}}},{"term":{"transaction.currency":{"value":"IDR","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
7
+ [2019-05-07T11:51:19,568][WARN ][index.search.slowlog.query] [elasticsearch-data8.mid.veritrans.co.id] [transactionsv3_2018-10][0] took[1s], took_millis[1097], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":30,"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
8
+ [2017-09-10T12:35:53,352][WARN ][index.search.slowlog.query] [GOgO9TD] [testindex-slowlogs][1] took[197.6micros], took_millis[0], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"name":{"query":"Nariko","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","boost":1.0}}},"sort":[{"price":{"order":"desc"}}]}],
9
+ [2017-09-10T12:35:53,352][WARN ][index.search.slowlog.query] [GOgO9TD] [testindex-slowlogs][3] took[279.3micros], took_millis[0], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"name":{"query":"Nariko","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","boost":1.0}}},"sort":[{"price":{"order":"desc"}}]}],
10
+ [2017-09-10T12:35:53,352][WARN ][index.search.slowlog.query] [GOgO9TD] [testindex-slowlogs][2] took[1ms], took_millis[1], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"name":{"query":"Nariko","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","boost":1.0}}},"sort":[{"price":{"order":"desc"}}]}],
11
+ [2017-09-10T12:35:53,352][WARN ][index.search.slowlog.query] [GOgO9TD] [testindex-slowlogs][4] took[370.8micros], took_millis[0], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"name":{"query":"Nariko","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","boost":1.0}}},"sort":[{"price":{"order":"desc"}}]}],
12
+ [2017-09-10T12:35:53,355][WARN ][index.search.slowlog.fetch] [GOgO9TD] [testindex-slowlogs][0] took[150.6micros], took_millis[0], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"name":{"query":"Nariko","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","boost":1.0}}},"sort":[{"price":{"order":"desc"}}]}]
13
+ [2018-05-21T12:35:53,352][DEBUG ][index.search.slowlog.query] [DwOfjJF] [blogpost-slowlogs][4] took[1s], took_millis[0], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"name":{"query":"hello world", "operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions" :true,"lenient":false,"zero_terms_query": "NONE","boost":1.0}}},"sort":[{"price": {"order":"desc"}}]}],
14
+ [2019-05-07T23:30:00,581][TRACE][index.search.slowlog.query] [elasticsearch-data9.mid.veritrans.co.id] [transactionsv3_2018-11][0] took[419ms], took_millis[419], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"size":0,"query":{"bool":{"must":[{"match_none":{"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"transactions_settlement":{"filter":{"term":{"transaction.status":{"value":"settlement","boost":1.0}}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"transactions_deny_by_fds":{"filter":{"term":{"transaction.fraud_status":{"value":"deny","boost":1.0}}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"transactions_challange":{"filter":{"term":{"transaction.fraud_status":{"value":"challenge","boost":1.0}}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"transactions_cancel":{"filter":{"term":{"transaction.status":{"value":"cancel","boost":1.0}}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"transactions_by_status":{"terms":{"field":"transaction.status","size":10,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_term":"asc"}]},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"transaction_deny_by_bank":{"filter":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}},{"term":{"transaction.status":{"value":"deny","boost":1.0}}}],"must_not":[{"term":{"transaction.fraud_status":{"value":"deny","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"other_payments":{"filter":{"bool":{"must":[{"term":{"transaction.status":{"value":"settlement","boost":1.0}}}],"must_not":[{"term":{"transaction.payment_type":{"value":"bank_transfer","boost":1.0}}},{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"by_payment_type":{"terms":{"field":"transaction.payment_type","size":10,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_term":"asc"}]},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}}}},"credit_card_banks":{"filter":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}},{"term":{"transaction.status":{"value":"settlement","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"by_banks":{"terms":{"field":"acquiring_bank","size":10,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_term":"asc"}]},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}}}},"by_merchant":{"terms":{"field":"transaction.merchant_id","size":10,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_term":"asc"}]},"aggregations":{"other_payments":{"filter":{"bool":{"must_not":[{"term":{"transaction.payment_type":{"value":"bank_transfer","boost":1.0}}},{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"per_payment_type":{"terms":{"field":"transaction.payment_type","size":10,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_term":"asc"}]},"aggregations":{"settlement_amount":{"filter":{"term":{"transaction.status":{"value":"settlement","boost":1.0}}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"canceled":{"filter":{"term":{"transaction.status":{"value":"cancel","boost":1.0}}}},"bank_denied":{"filter":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}},{"term":{"transaction.status":{"value":"deny","boost":1.0}}}],"must_not":[{"term":{"transaction.fraud_status":{"value":"deny","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}}}}}},"credit_card_payments":{"filter":{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}},"aggregations":{"by_banks":{"terms":{"field":"acquiring_bank","size":10,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_term":"asc"}]},"aggregations":{"settlement_amount":{"filter":{"term":{"transaction.status":{"value":"settlement","boost":1.0}}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"canceled":{"filter":{"term":{"transaction.status":{"value":"cancel","boost":1.0}}}},"bank_denied":{"filter":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}},{"term":{"transaction.status":{"value":"deny","boost":1.0}}}],"must_not":[{"term":{"transaction.fraud_status":{"value":"deny","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}}}}}},"bank_transfer_payments":{"filters":{"filters":{"bca":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"bank_transfer","boost":1.0}}},{"nested":{"query":{"bool":{"must":[{"term":{"virtual_accounts.bank":{"value":"bca","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"path":"virtual_accounts","ignore_unmapped":false,"score_mode":"avg","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"permata":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"bank_transfer","boost":1.0}}},{"nested":{"query":{"bool":{"must":[{"term":{"virtual_accounts.bank":{"value":"permata","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"path":"virtual_accounts","ignore_unmapped":false,"score_mode":"avg","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}},"other_bucket":false,"other_bucket_key":"_other_"},"aggregations":{"settlement_amount":{"filter":{"term":{"transaction.status":{"value":"settlement","boost":1.0}}},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}},"canceled":{"filter":{"term":{"transaction.status":{"value":"cancel","boost":1.0}}}},"bank_denied":{"filter":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"credit_card","boost":1.0}}},{"term":{"transaction.status":{"value":"deny","boost":1.0}}}],"must_not":[{"term":{"transaction.fraud_status":{"value":"deny","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}}}}}},"bank_transfers":{"filters":{"filters":{"bca":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"bank_transfer","boost":1.0}}},{"term":{"transaction.status":{"value":"settlement","boost":1.0}}},{"nested":{"query":{"bool":{"must":[{"term":{"virtual_accounts.bank":{"value":"bca","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"path":"virtual_accounts","ignore_unmapped":false,"score_mode":"avg","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"permata":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"bank_transfer","boost":1.0}}},{"term":{"transaction.status":{"value":"settlement","boost":1.0}}},{"nested":{"query":{"bool":{"must":[{"term":{"virtual_accounts.bank":{"value":"permata","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"path":"virtual_accounts","ignore_unmapped":false,"score_mode":"avg","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}},"other_bucket":false,"other_bucket_key":"_other_"},"aggregations":{"transaction_gross_amount":{"sum":{"field":"transaction.gross_amount"}}}}}}],
15
+ [2019-05-07T23:20:48,995][TRACE][index.search.slowlog.query] [elasticsearch-data6.mid.veritrans.co.id] [transactionsv3_2018-07][1] took[248.3ms], took_millis[248], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"size":0,"query":{"bool":{"filter":[{"terms":{"transaction.merchant_id":["12345"],"boost":1.0}},{"bool":{"filter":[{"match_none":{"boost":1.0}},{"range":{"transaction.transaction_time":{"from":null,"to":null,"include_lower":true,"include_upper":true,"boost":1.0}}},{"match":{"transaction.payment_type":{"query":"gopay","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","boost":1.0}}},{"term":{"transaction.merchant_id":{"value":"12345","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"brand":{"sum":{"field":"transaction.real_gross_amount"}},"by_merchant":{"terms":{"field":"transaction.metadata.merchant_cross_reference_id.keyword","size":50,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"total.value":"desc"},{"_term":"asc"}]},"aggregations":{"total":{"sum":{"field":"transaction.real_gross_amount"}}}},"goresto":{"filter":{"bool":{"filter":[{"term":{"source":{"value":"goresto_online","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"total":{"sum":{"field":"transaction.real_gross_amount"}}}}}}],
16
+ [2019-05-07T16:14:28,385][WARN ][index.search.slowlog.query] [elasticsearch-data4.mid.veritrans.co.id] [transactionsv3_2018-08][0] took[1.1s], took_millis[1108], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"size":0,"query":{"bool":{"must":[{"term":{"transaction.payment_type":{"value":"CREDIT_CARD","boost":1.0}}},{"term":{"acquiring_bank":{"value":"MANDIRI","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"current":{"filter":{"range":{"transaction.transaction_time":{"from":"2019-05-07T04:00:00+07:00","to":"2019-05-07T16:30:00+07:00","include_lower":false,"include_upper":true,"boost":1.0}}},"aggregations":{"monitoring_successfull":{"filter":{"bool":{"should":[{"bool":{"filter":[{"terms":{"transaction.status":["CAPTURE","AUTHORIZE"],"boost":1.0}},{"bool":{"should":[{"bool":{"must":[{"terms":{"transaction.fraud_status":["accept","noscore",""],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"bool":{"must_not":[{"exists":{"field":"transaction.fraud_status","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"term":{"transaction.status":{"value":"SETTLEMENT","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"per_half_hour":{"date_histogram":{"field":"transaction.transaction_time","time_zone":"+07:00","interval":"30m","offset":0,"order":{"_key":"asc"},"keyed":true,"min_doc_count":0,"extended_bounds":{"min":"2019-05-07T04:00:00+07:00","max":"2019-05-07T16:30:00+07:00"}}}}},"monitoring_failed":{"filter":{"bool":{"must_not":[{"bool":{"should":[{"bool":{"filter":[{"terms":{"transaction.status":["CAPTURE","AUTHORIZE","PENDING"],"boost":1.0}},{"bool":{"should":[{"bool":{"must":[{"terms":{"transaction.fraud_status":["accept","noscore",""],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"bool":{"must_not":[{"exists":{"field":"transaction.fraud_status","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"term":{"transaction.status":{"value":"SETTLEMENT","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"per_half_hour":{"date_histogram":{"field":"transaction.transaction_time","time_zone":"+07:00","interval":"30m","offset":0,"order":{"_key":"asc"},"keyed":true,"min_doc_count":0,"extended_bounds":{"min":"2019-05-07T04:00:00+07:00","max":"2019-05-07T16:30:00+07:00"}}}}},"monitoring_pending":{"filter":{"term":{"transaction.status":{"value":"PENDING","boost":1.0}}},"aggregations":{"per_half_hour":{"date_histogram":{"field":"transaction.transaction_time","time_zone":"+07:00","interval":"30m","offset":0,"order":{"_key":"asc"},"keyed":true,"min_doc_count":0,"extended_bounds":{"min":"2019-05-07T04:00:00+07:00","max":"2019-05-07T16:30:00+07:00"}}}}}}},"last_week":{"filter":{"range":{"transaction.transaction_time":{"from":"2019-04-30T04:00:00+07:00","to":"2019-04-30T16:30:00+07:00","include_lower":false,"include_upper":true,"boost":1.0}}},"aggregations":{"monitoring_successfull":{"filter":{"bool":{"should":[{"bool":{"filter":[{"terms":{"transaction.status":["CAPTURE","AUTHORIZE"],"boost":1.0}},{"bool":{"should":[{"bool":{"must":[{"terms":{"transaction.fraud_status":["accept","noscore",""],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"bool":{"must_not":[{"exists":{"field":"transaction.fraud_status","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"term":{"transaction.status":{"value":"SETTLEMENT","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"per_half_hour":{"date_histogram":{"field":"transaction.transaction_time","time_zone":"+07:00","interval":"30m","offset":0,"order":{"_key":"asc"},"keyed":true,"min_doc_count":0,"extended_bounds":{"min":"2019-04-30T04:00:00+07:00","max":"2019-04-30T16:30:00+07:00"}}}}},"monitoring_failed":{"filter":{"bool":{"must_not":[{"bool":{"should":[{"bool":{"filter":[{"terms":{"transaction.status":["CAPTURE","AUTHORIZE","PENDING"],"boost":1.0}},{"bool":{"should":[{"bool":{"must":[{"terms":{"transaction.fraud_status":["accept","noscore",""],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"bool":{"must_not":[{"exists":{"field":"transaction.fraud_status","boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},{"term":{"transaction.status":{"value":"SETTLEMENT","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"aggregations":{"per_half_hour":{"date_histogram":{"field":"transaction.transaction_time","time_zone":"+07:00","interval":"30m","offset":0,"order":{"_key":"asc"},"keyed":true,"min_doc_count":0,"extended_bounds":{"min":"2019-04-30T04:00:00+07:00","max":"2019-04-30T16:30:00+07:00"}}}}}}}}}],
17
+ [2019-05-06T10:11:57,783][TRACE][index.search.slowlog.query] [elasticsearch-data5.mid.veritrans.co.id] [transactionsv3_2018-09][2] took[316.7ms], took_millis[316], types[transaction], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":20,"query":{"bool":{"must":[{"prefix":{"transaction.order_id.downcase":{"value":"AID20213791","boost":1.0}}}],"filter":[{"terms":{"transaction.merchant_id":["12345"],"boost":1.0}},{"term":{"transaction.currency":{"value":"IDR","boost":1.0}}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}},"sort":[{"transaction.transaction_time":{"order":"desc"}}]}],
18
+ [2019-05-06T17:40:30,973][TRACE][index.search.slowlog.query] [elasticsearch-data9.mid.veritrans.co.id] [transactionsv3_2018-11][0] took[214.9ms], took_millis[214], types[share], stats[], search_type[QUERY_THEN_FETCH], total_shards[111], source[{"from":0,"size":415,"query":{"bool":{"filter":[{"type":{"value":"share","boost":1.0}},{"bool":{"should":[{"terms":{"parent_transaction_id":["32a6c513-a848-4530-c574-aa7584c47af0","cbfb0218-bfe0-4e4e-ce5c-d988de10ac39","6ccc8df6-25b7-44ef-c48a-e05fa8632cd5","3142071a-e540-460b-c6e8-f37500ba0ae0","09c53f42-8caa-4994-c99f-33bf35760135","d3da48cb-9af9-432d-c3e8-d7d8fd9f36a6","f840fdd4-b2fc-4b60-cb0f-48719d9cfe4b","850522b7-747c-43e4-c34d-0c9ab93de19c","3e635b21-61fc-429c-c29d-655a4c633009","cde1e3a4-7d01-497f-c926-8654d9b45f51","f7a06a88-6c17-43f2-c329-0d40d402c7b9","b09e0b6c-f689-4165-c171-9750da61007c","50053453-84ec-4176-c1a7-4fc73a4655b0","4944e14e-5bb8-4633-c676-0c3dd0f5abed","53746f4b-3c7e-45b9-c5d0-94352beac2c0","7c084339-542d-4b30-cb26-5d667eee8dbc","ef4856f4-3903-411b-c1b6-47c928d8d7ba","66c8b590-ae5d-4b21-cbda-59e4520cb449","9b23cfa3-ab92-484e-c878-fd059ab87297","1649d661-1ce2-4d5c-cd01-a4db7415cc01","1ad7bb85-6cd9-447a-c49f-d0aad1da6454","0cfa280e-8303-49e5-c946-925c1d50878b","5334415b-afbd-45c7-c54c-d5c6fa81292c","176baaf4-2545-415f-c155-d4d3385767a9","9d5ab724-b417-4bae-cbfc-b93af830eeb9","39e512c6-a6e6-4913-c9b1-f6f37dbb71ab","05e35002-a480-4394-c355-903b01ec0b18","e92e1073-730f-4dee-cdda-cb0b4842f4ac","f4968be5-9acd-4b9f-cbc6-318512cb64ff","7511b3d1-31bb-4c1e-cc02-1eef530f30dd","bafd37dd-7ccc-460a-c665-dc10bce256f8","4612f4d2-abdd-474b-c7ca-a4d95b9029e2","e9ea41a2-2b8e-4435-c4fc-00608bbaef8c","6231965a-08c8-4821-c8bf-134d82bc9cbb","cfdf55f0-5450-4979-c983-fc70bbe8ce30","2c429c6a-d970-4a01-cace-88bc0d595b51","0a3e50c0-bd45-4350-c321-527e6682bf27","612e9193-73ac-4bb4-cbe9-428d2bde2597","6fd51680-e7b3-4ced-cc18-81232d4bac1c","b3334813-276d-4048-c0a6-ebcf3d038030","edbc432a-c610-435c-c305-fc0c9a5a900b","87dcf4a9-2ebb-4841-c833-29672ea9f341","b11a2798-2c9f-453f-c569-3ba90c5621ee","dfe7aec3-ab49-4db8-cd8b-f78542ce441f","5dfa0a10-89cb-40af-c0ed-b203a7e8c27d","8565611c-5f59-4fd6-cf5b-c53084854dc3","3fca2e47-a712-4f86-cf20-8ff4cb5f967e","ac24616d-32e9-474a-c7cb-1c97051544fb","c65b7741-c4e3-4483-c43f-c6182878dd5e","0e22dea6-6d68-43e7-c319-e35325f0c30b","c0dffd26-fe36-4483-c421-c814e0b366c7","d4b39da3-350c-4647-c6b5-c2d5dbc56451","22c78e39-da6e-4c15-ccf0-ed8b178384c4","2a36ac1a-de69-436a-c36b-df6f7c0bfb21","2ad0668e-cdb3-48a6-c865-d67d6407d362","ad23025a-e6bd-4086-c031-12b098c4c923","c9a29c4d-4501-4949-c973-af92a8ea327e","f1298640-3d73-495b-c940-b8656b5ef539","8965b8e8-ec0b-49fd-c9cf-16d0dd3f511d","283636e7-9beb-4767-c7a8-19563734245f","0a97019a-3489-4018-c0f0-bf2515848e1a","93e49bde-af2b-44c0-c4cd-a24772c89c2f","5a9f9bc7-88b2-4909-c98e-6e5495085dc9","dd7496d3-338f-43de-c3e1-47eee6f8c499","2917505a-a4a1-4a87-caae-55f185cd4a05","e28af173-e259-4309-c33d-105cfb1bf62b","8a61b431-aa40-4c3b-cce1-87d6614f4db1","8f2b5b03-2b81-494a-c994-069deea898da","30e3950e-632d-482e-c802-bb9775b7c82a","70676aca-d44f-4756-c75e-8401c36ecab0","ebdc9f87-8ab8-4814-c8bf-39852dd2cf6d","18021b5f-dc91-4624-c6e4-bf145ca618e0","1e7025e0-6522-4c5e-cced-db71c3611dd6","583f0603-a827-49db-c94d-10a522b48b2e","2df3cd08-1a64-4dda-cdae-5e787076c114","21afcabf-e622-415c-c15e-d2ec5f39657c","af5001c0-5e6c-4d02-cd4a-d0b3f926b3ba","6c3e1350-c30f-464f-c636-7532cb07214c","25a79fa2-d8f5-4487-c415-edb71c315c4c","edec2b61-2c44-46ca-c6c1-e571046620a2","fe2fc4f8-1084-4017-c0c4-ab7016f7c97d","4118abad-68eb-469d-c6b9-53e514fe3d68","b52e2169-caa4-41eb-c13f-2cfe5550749f"],"boost":1.0}},{"terms":{"transaction_id":["32a6c513-a848-4530-c574-aa7584c47af0","cbfb0218-bfe0-4e4e-ce5c-d988de10ac39","6ccc8df6-25b7-44ef-c48a-e05fa8632cd5","3142071a-e540-460b-c6e8-f37500ba0ae0","09c53f42-8caa-4994-c99f-33bf35760135","d3da48cb-9af9-432d-c3e8-d7d8fd9f36a6","f840fdd4-b2fc-4b60-cb0f-48719d9cfe4b","850522b7-747c-43e4-c34d-0c9ab93de19c","3e635b21-61fc-429c-c29d-655a4c633009","cde1e3a4-7d01-497f-c926-8654d9b45f51","f7a06a88-6c17-43f2-c329-0d40d402c7b9","b09e0b6c-f689-4165-c171-9750da61007c","50053453-84ec-4176-c1a7-4fc73a4655b0","4944e14e-5bb8-4633-c676-0c3dd0f5abed","53746f4b-3c7e-45b9-c5d0-94352beac2c0","7c084339-542d-4b30-cb26-5d667eee8dbc","ef4856f4-3903-411b-c1b6-47c928d8d7ba","66c8b590-ae5d-4b21-cbda-59e4520cb449","9b23cfa3-ab92-484e-c878-fd059ab87297","1649d661-1ce2-4d5c-cd01-a4db7415cc01","1ad7bb85-6cd9-447a-c49f-d0aad1da6454","0cfa280e-8303-49e5-c946-925c1d50878b","5334415b-afbd-45c7-c54c-d5c6fa81292c","176baaf4-2545-415f-c155-d4d3385767a9","9d5ab724-b417-4bae-cbfc-b93af830eeb9","39e512c6-a6e6-4913-c9b1-f6f37dbb71ab","05e35002-a480-4394-c355-903b01ec0b18","e92e1073-730f-4dee-cdda-cb0b4842f4ac","f4968be5-9acd-4b9f-cbc6-318512cb64ff","7511b3d1-31bb-4c1e-cc02-1eef530f30dd","bafd37dd-7ccc-460a-c665-dc10bce256f8","4612f4d2-abdd-474b-c7ca-a4d95b9029e2","e9ea41a2-2b8e-4435-c4fc-00608bbaef8c","6231965a-08c8-4821-c8bf-134d82bc9cbb","cfdf55f0-5450-4979-c983-fc70bbe8ce30","2c429c6a-d970-4a01-cace-88bc0d595b51","0a3e50c0-bd45-4350-c321-527e6682bf27","612e9193-73ac-4bb4-cbe9-428d2bde2597","6fd51680-e7b3-4ced-cc18-81232d4bac1c","b3334813-276d-4048-c0a6-ebcf3d038030","edbc432a-c610-435c-c305-fc0c9a5a900b","87dcf4a9-2ebb-4841-c833-29672ea9f341","b11a2798-2c9f-453f-c569-3ba90c5621ee","dfe7aec3-ab49-4db8-cd8b-f78542ce441f","5dfa0a10-89cb-40af-c0ed-b203a7e8c27d","8565611c-5f59-4fd6-cf5b-c53084854dc3","3fca2e47-a712-4f86-cf20-8ff4cb5f967e","ac24616d-32e9-474a-c7cb-1c97051544fb","c65b7741-c4e3-4483-c43f-c6182878dd5e","0e22dea6-6d68-43e7-c319-e35325f0c30b","c0dffd26-fe36-4483-c421-c814e0b366c7","d4b39da3-350c-4647-c6b5-c2d5dbc56451","22c78e39-da6e-4c15-ccf0-ed8b178384c4","2a36ac1a-de69-436a-c36b-df6f7c0bfb21","2ad0668e-cdb3-48a6-c865-d67d6407d362","ad23025a-e6bd-4086-c031-12b098c4c923","c9a29c4d-4501-4949-c973-af92a8ea327e","f1298640-3d73-495b-c940-b8656b5ef539","8965b8e8-ec0b-49fd-c9cf-16d0dd3f511d","283636e7-9beb-4767-c7a8-19563734245f","0a97019a-3489-4018-c0f0-bf2515848e1a","93e49bde-af2b-44c0-c4cd-a24772c89c2f","5a9f9bc7-88b2-4909-c98e-6e5495085dc9","dd7496d3-338f-43de-c3e1-47eee6f8c499","2917505a-a4a1-4a87-caae-55f185cd4a05","e28af173-e259-4309-c33d-105cfb1bf62b","8a61b431-aa40-4c3b-cce1-87d6614f4db1","8f2b5b03-2b81-494a-c994-069deea898da","30e3950e-632d-482e-c802-bb9775b7c82a","70676aca-d44f-4756-c75e-8401c36ecab0","ebdc9f87-8ab8-4814-c8bf-39852dd2cf6d","18021b5f-dc91-4624-c6e4-bf145ca618e0","1e7025e0-6522-4c5e-cced-db71c3611dd6","583f0603-a827-49db-c94d-10a522b48b2e","2df3cd08-1a64-4dda-cdae-5e787076c114","21afcabf-e622-415c-c15e-d2ec5f39657c","af5001c0-5e6c-4d02-cd4a-d0b3f926b3ba","6c3e1350-c30f-464f-c636-7532cb07214c","25a79fa2-d8f5-4487-c415-edb71c315c4c","edec2b61-2c44-46ca-c6c1-e571046620a2","fe2fc4f8-1084-4017-c0c4-ab7016f7c97d","4118abad-68eb-469d-c6b9-53e514fe3d68","b52e2169-caa4-41eb-c13f-2cfe5550749f"],"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}],"disable_coord":false,"adjust_pure_negative":true,"boost":1.0}}}],
@@ -0,0 +1,2 @@
1
+ # encoding: utf-8
2
+ require "logstash/devutils/rspec/spec_helper"
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-filter-elasticsearchslowlog
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Anantha Kumaran
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-05-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '0.4'
19
+ name: deepsort
20
+ prerelease: false
21
+ type: :runtime
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.4'
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ name: logstash-core-plugin-api
34
+ prerelease: false
35
+ type: :runtime
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ name: logstash-devutils
48
+ prerelease: false
49
+ type: :development
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: elasticsearch slowlog parser
56
+ email: ananthakumaran@gmail.com
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - Gemfile
62
+ - LICENSE
63
+ - README.md
64
+ - lib/logstash/filters/elasticsearchslowlog.rb
65
+ - logstash-filter-elasticsearchslowlog.gemspec
66
+ - spec/filters/elasticsearchslowlog_spec.rb
67
+ - spec/filters/fixture_invalid.txt
68
+ - spec/filters/fixture_source_normalized.txt
69
+ - spec/filters/fixture_valid.txt
70
+ - spec/spec_helper.rb
71
+ homepage: https://github.com/ananthakumaran/logstash-filter-elasticsearchslowlog
72
+ licenses:
73
+ - Apache-2.0
74
+ metadata:
75
+ logstash_plugin: 'true'
76
+ logstash_group: filter
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubygems_version: 3.0.3
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: elasticsearch slowlog parser
96
+ test_files:
97
+ - spec/filters/elasticsearchslowlog_spec.rb
98
+ - spec/filters/fixture_invalid.txt
99
+ - spec/filters/fixture_source_normalized.txt
100
+ - spec/filters/fixture_valid.txt
101
+ - spec/spec_helper.rb