logstash-output-elasticsearch 10.4.1-java → 10.4.2-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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e5b6da5658007e7a4a0a9c1b9e087cd9d91ea37b9d13909370c3982e0d353f7
4
- data.tar.gz: d20c029af20c6ea1fed2a4287b81d8d5b723e8dda2d078abe7d686ea14075286
3
+ metadata.gz: 7f27a5838e3f5abb53fb561802f1fa6f88e25b43f252951f6a2e8a1a8402d11a
4
+ data.tar.gz: d77d44f5f208793751f7e026a47806523158f490fd0872f739aea9102acae7a5
5
5
  SHA512:
6
- metadata.gz: 9c7facb3b428ebac3ddb3e2a55c1ceb410ddf64429197872565e1a7069174d1410be4044ca099666bbe3c5b65afcaf555358043881d3654a5bdd1fa81488ebea
7
- data.tar.gz: bfc16cff30b59df4e66d3adb306ecf1da02e4036f3e1146db2004bc4576a46e1463d8a63f6806f53651380ca4f9df892730e65387a9e0cb43484cef2388f27be
6
+ metadata.gz: a64c0b9981fb551cba3a566a6c519d99579b5827128c3320ea77cd9c47932a54f0bcfcba9f94ca57c8570e428f8efde54f1e94d5351ec21ce91a95bf70999bce
7
+ data.tar.gz: dd082458727f7b7bfaa8273606e12b131efe6fbd035f25f881d118e59e15fa0d556db1f4675baede6955827b89a1f127d05e16a86d11bf2f97b39861a68df945
@@ -1,3 +1,6 @@
1
+ ## 10.4.2
2
+ - Changed cloud id, credential and host setup to happen in `build_client` [#939](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/939)
3
+
1
4
  ## 10.4.1
2
5
  - [DOC] Added note about `_type` setting change from `doc` to `_doc` [#884](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/884)
3
6
 
@@ -255,6 +255,10 @@ class LogStash::Outputs::ElasticSearch < LogStash::Outputs::Base
255
255
  end
256
256
 
257
257
  def build_client
258
+ fill_user_password_from_cloud_auth
259
+ fill_hosts_from_cloud_id
260
+ setup_hosts
261
+
258
262
  params["metric"] = metric
259
263
  if @proxy.eql?('')
260
264
  @logger.warn "Supplied proxy setting (proxy => '') has no effect"
@@ -21,9 +21,6 @@ module LogStash; module Outputs; class ElasticSearch;
21
21
  # To support BWC, we check if DLQ exists in core (< 5.4). If it doesn't, we use nil to resort to previous behavior.
22
22
  @dlq_writer = dlq_enabled? ? execution_context.dlq_writer : nil
23
23
 
24
- fill_hosts_from_cloud_id
25
- fill_user_password_from_cloud_auth
26
- setup_hosts # properly sets @hosts
27
24
  build_client
28
25
  setup_after_successful_connection
29
26
  check_action_validity
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-elasticsearch'
3
- s.version = '10.4.1'
3
+ s.version = '10.4.2'
4
4
 
5
5
  s.licenses = ['apache-2.0']
6
6
  s.summary = "Stores logs in Elasticsearch"
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: 10.4.1
4
+ version: 10.4.2
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-27 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement