logstash-output-elasticsearch 7.4.3-java → 8.0.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +5 -18
  3. data/docs/index.asciidoc +13 -50
  4. data/lib/logstash/outputs/elasticsearch/common.rb +39 -43
  5. data/lib/logstash/outputs/elasticsearch/common_configs.rb +2 -11
  6. data/lib/logstash/outputs/elasticsearch/http_client.rb +22 -27
  7. data/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb +2 -2
  8. data/lib/logstash/outputs/elasticsearch/http_client/pool.rb +12 -31
  9. data/lib/logstash/outputs/elasticsearch/template_manager.rb +6 -4
  10. data/logstash-output-elasticsearch.gemspec +1 -1
  11. data/spec/es_spec_helper.rb +0 -6
  12. data/spec/integration/outputs/compressed_indexing_spec.rb +44 -46
  13. data/spec/integration/outputs/delete_spec.rb +49 -51
  14. data/spec/integration/outputs/groovy_update_spec.rb +129 -131
  15. data/spec/integration/outputs/index_version_spec.rb +81 -82
  16. data/spec/integration/outputs/ingest_pipeline_spec.rb +49 -51
  17. data/spec/integration/outputs/painless_update_spec.rb +130 -170
  18. data/spec/integration/outputs/parent_spec.rb +55 -149
  19. data/spec/integration/outputs/sniffer_spec.rb +2 -5
  20. data/spec/integration/outputs/templates_5x_spec.rb +82 -81
  21. data/spec/integration/outputs/templates_spec.rb +81 -81
  22. data/spec/integration/outputs/update_spec.rb +99 -101
  23. data/spec/unit/outputs/elasticsearch/http_client/manticore_adapter_spec.rb +5 -30
  24. data/spec/unit/outputs/elasticsearch/http_client/pool_spec.rb +0 -3
  25. data/spec/unit/outputs/elasticsearch/http_client_spec.rb +12 -11
  26. data/spec/unit/outputs/elasticsearch/template_manager_spec.rb +25 -13
  27. data/spec/unit/outputs/elasticsearch_spec.rb +1 -10
  28. metadata +4 -6
@@ -186,7 +186,6 @@ describe "outputs/elasticsearch" do
186
186
  describe "#multi_receive" do
187
187
  let(:events) { [double("one"), double("two"), double("three")] }
188
188
  let(:events_tuples) { [double("one t"), double("two t"), double("three t")] }
189
- let(:options) { super.merge("flush_size" => 2) }
190
189
 
191
190
  before do
192
191
  allow(eso).to receive(:retrying_submit).with(anything)
@@ -197,11 +196,6 @@ describe "outputs/elasticsearch" do
197
196
  eso.multi_receive(events)
198
197
  end
199
198
 
200
- it "should receive an array of events and invoke retrying_submit with them, split by flush_size" do
201
- expect(eso).to have_received(:retrying_submit).with(events_tuples.slice(0,2))
202
- expect(eso).to have_received(:retrying_submit).with(events_tuples.slice(2,3))
203
- end
204
-
205
199
  end
206
200
 
207
201
  context "429 errors" do
@@ -212,10 +206,8 @@ describe "outputs/elasticsearch" do
212
206
  )
213
207
  end
214
208
  let(:logger) { double("logger").as_null_object }
215
- let(:response) { { :errors => [], :items => [] } }
216
209
 
217
210
  before(:each) do
218
-
219
211
  i = 0
220
212
  bulk_param = [["index", anything, event.to_hash]]
221
213
 
@@ -227,7 +219,7 @@ describe "outputs/elasticsearch" do
227
219
  if i == 1
228
220
  raise error
229
221
  end
230
- end.and_return(response)
222
+ end
231
223
  eso.multi_receive([event])
232
224
  end
233
225
 
@@ -248,7 +240,6 @@ describe "outputs/elasticsearch" do
248
240
  {
249
241
  "manage_template" => false,
250
242
  "hosts" => "localhost:#{port}",
251
- "flush_size" => 1,
252
243
  "timeout" => 0.1, # fast timeout
253
244
  }
254
245
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.3
4
+ version: 8.0.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -196,9 +196,7 @@ dependencies:
196
196
  - - ">="
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
- description: This gem is a Logstash plugin required to be installed on top of the
200
- Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
201
- gem is not a stand-alone program
199
+ description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
202
200
  email: info@elastic.co
203
201
  executables: []
204
202
  extensions: []
@@ -282,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
280
  version: '0'
283
281
  requirements: []
284
282
  rubyforge_project:
285
- rubygems_version: 2.6.13
283
+ rubygems_version: 2.4.8
286
284
  signing_key:
287
285
  specification_version: 4
288
286
  summary: Logstash Output to Elasticsearch