logstash-output-elasticsearch 11.9.2-java → 11.10.0-java

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: 4a26389aead9d5d86292685ab80eef56c151a8cd63f5bb3e3c3d05e5a7b45520
4
- data.tar.gz: e28c84ccf3b74806010f1003210833dfc834aafff29201b62887cdd3ab626e51
3
+ metadata.gz: 88cb9349aee0722c0f5c9b936257fa46a5954a9fc603d783e275206217a4f0af
4
+ data.tar.gz: f99d4aeed3b63a3c320ae058c1a3842dcedfee54f4064387cc61836396040220
5
5
  SHA512:
6
- metadata.gz: 28faa92933a6959a6d8a8b898d6c87428dfec93125063df7489859d11fdceba0e64c7733d2c77de9f6c241859923563488d2bf4f04f40b1b830f760697efb578
7
- data.tar.gz: 821823a2d64c68a8183471366297c299fa771a149c3d03847bc63489ff908d2757a8c7344be9f30b3b34c291eaeaed9694329e7671d7b9ae86eb5ff1445ce820
6
+ metadata.gz: 98bcaa84acaa9ebcf13f8a6c64c9d40e220838adf5e321fcf198ff1a51ad016855172b119e4003c7fb13c204c156c77cf10d6a01f7fc574e8c4b20a0284f4391
7
+ data.tar.gz: 75827edd0dca20dd1e534e2abd3f4b1bf4e2174865d1fcdc677b24131c28a490267989f48ded95587af103a38486b6d524da1c81ce41f44ad347dcd6b40cedb0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
+ ## 11.10.0
2
+ - Feature: expose `dlq_routed` document metric to track the documents routed into DLQ [#1090](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1090)
3
+
4
+ ## 11.9.3
5
+ - DOC: clarify that `http_compression` option only affects _requests_; compressed _responses_ have always been read independent of this setting [#1030 ](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1030)
6
+
1
7
  ## 11.9.2
2
- - Fix broken link to Logstash Reference [#1085](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1085)
8
+ - Fix broken link to Logstash Reference [#1085](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1085)
3
9
 
4
10
  ## 11.9.1
5
11
  - Fixes a possible infinite-retry-loop that could occur when this plugin is configured with an `action` whose value contains a [sprintf-style placeholder][] that fails to be resolved for an individual event. Events in this state will be routed to the pipeline's [dead letter queue][DLQ] if it is available, or will be logged-and-dropped so that the remaining events in the batch can be processed [#1080](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1080)
data/docs/index.asciidoc CHANGED
@@ -276,11 +276,10 @@ not reevaluate its DNS value while the keepalive is in effect.
276
276
 
277
277
  ==== HTTP Compression
278
278
 
279
- This plugin supports request compression, and handles compressed responses
280
- from Elasticsearch.
279
+ This plugin always reads compressed responses from {es}.
280
+ It _can be configured_ to send compressed bulk requests to {es}.
281
281
 
282
- To enable request compression, use the <<plugins-{type}s-{plugin}-http_compression>>
283
- setting on this plugin.
282
+ If you are concerned about bandwidth, you can enable <<plugins-{type}s-{plugin}-http_compression>> to trade a small amount of CPU capacity for a significant reduction in network IO.
284
283
 
285
284
  ==== Authentication
286
285
 
@@ -396,7 +395,8 @@ The Elasticsearch action to perform. Valid actions are:
396
395
  in Elasticsearch 1.x. Please upgrade to ES 2.x or greater to use this feature with Logstash!
397
396
  - A sprintf style string to change the action based on the content of the event. The value `%{[foo]}`
398
397
  would use the foo field for the action.
399
- If resolved action is not in [`index`, `delete`, `create`, `update`], the event will not be sent to {es}, and will instead either be sent to the pipeline's {logstash-ref}/dead-letter-queues.html[dead-letter-queues] if it is enabled, or will be logged and dropped.
398
+ If resolved action is not in [`index`, `delete`, `create`, `update`], the event will not be sent to {es}.
399
+ Instead the event will be sent to the pipeline's {logstash-ref}/dead-letter-queues.html[dead-letter-queue (DLQ)] (if enabled), or it will be logged and dropped.
400
400
 
401
401
  For more details on actions, check out the {ref}/docs-bulk.html[Elasticsearch bulk API documentation].
402
402
 
@@ -273,7 +273,7 @@ module LogStash; module PluginMixins; module ElasticSearch
273
273
  next
274
274
  elsif @dlq_codes.include?(status)
275
275
  handle_dlq_response("Could not index event to Elasticsearch.", action, status, response)
276
- @document_level_metrics.increment(:non_retryable_failures)
276
+ @document_level_metrics.increment(:dlq_routed)
277
277
  next
278
278
  else
279
279
  # only log what the user whitelisted
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-elasticsearch'
3
- s.version = '11.9.2'
3
+ s.version = '11.10.0'
4
4
  s.licenses = ['apache-2.0']
5
5
  s.summary = "Stores logs in Elasticsearch"
6
6
  s.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"
@@ -58,7 +58,7 @@ describe "metrics", :integration => true do
58
58
  end
59
59
 
60
60
  it "increases number of successful and non retryable documents" do
61
- expect(document_level_metrics).to receive(:increment).with(:non_retryable_failures).once
61
+ expect(document_level_metrics).to receive(:increment).with(:dlq_routed).once
62
62
  expect(document_level_metrics).to receive(:increment).with(:successes).once
63
63
  subject.multi_receive(bulk)
64
64
  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: 11.9.2
4
+ version: 11.10.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-22 00:00:00.000000000 Z
11
+ date: 2022-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement