fluent-plugin-elastic-log 0.5.0 → 0.5.2

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
  SHA256:
3
- metadata.gz: 8fc9200f1f1d69c9899d9d0a3daf550ea117c40794bfb0c4aea36bf98514df60
4
- data.tar.gz: 5d6d1da9522cbd4e4888f791323f1402107714d522bd30a44eb1d04f58bbacfb
3
+ metadata.gz: 3e16830d4cb485b78076e82a3eb54345f17c9d04858b4c54577ef6c9bfb505a2
4
+ data.tar.gz: ccf19e1fc0ddb3631b921d35fef3d9d946c8d71f26b3f67083857407f664b9f3
5
5
  SHA512:
6
- metadata.gz: a98aad4e1f27636f65a677680146fbc0e286f3875f175ec172b2e33f286e60219d24d8945bae7022498c8d92f07a2df2e2e2e35e94d5101eef4c49a1e0f19d1f
7
- data.tar.gz: 51a82ded9b94c7841b9da3d67611c928b0ec315e276cdd314c09ca15fe4d5aef3e0073d8a2614e21871d31019148fc04bd45227b15f5d9f2717d5a98645ab206
6
+ metadata.gz: e71ee031d93657978f1098641c7ca39ca3e34f2be9e6d4dc29526f6a961a31b4be3096871144dc425495588ae20b7aa17b7bfa46624cb42c2d485f75a68f30bd
7
+ data.tar.gz: cf43d3ec80f36df15f28fcd89d53f443fea7b03d7607e3ff2b74d06320078560e7ebbd0464781f9b5b023211fa4d2060104b6904559398d24d70f6692ebd7d2e
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'fluent-plugin-elastic-log'
8
- spec.version = '0.5.0'
8
+ spec.version = '0.5.2'
9
9
  spec.authors = ['Thomas Tych']
10
10
  spec.email = ['thomas.tych@gmail.com']
11
11
 
@@ -74,7 +74,8 @@ module Fluent
74
74
 
75
75
  req_body.each_line.each_slice(2).with_object(Set.new) do |(cmd_line, _data_line), acc|
76
76
  cmd = JSON.parse(cmd_line)
77
- acc << aggregate_index(cmd['index'])
77
+ index = cmd['index']
78
+ [index].flatten.each { |index_i| acc << aggregate_index(index_i) }
78
79
  end
79
80
  end
80
81
 
@@ -92,7 +93,7 @@ module Fluent
92
93
  when 'msearch' then msearch_indices
93
94
  else []
94
95
  end
95
- indices << query_index if query_index || indices.empty?
96
+ indices << aggregate_index(query_index) if query_index || indices.empty?
96
97
 
97
98
  indices.inject([]) do |metrics, index|
98
99
  metrics << base.merge("#{conf.prefix}index" => index,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-elastic-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Tych
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-26 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump