logstash-output-elasticsearch 11.0.1-java → 11.0.2-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: beee28e62f0872a041adc3c0f2c8546dbca09ced5c8a8e261cf1c9d07a0e64fe
4
- data.tar.gz: f3f88dbbdf310557151a2f819ea566413d9f798be38d4717261c9dc544db97f1
3
+ metadata.gz: c4d12d1aba765125efba841af202081a30171914e9b5dc6aca66772c546c3bd6
4
+ data.tar.gz: bbfe6f58cd3824fc67fd0c80a564f759a32863e0590a2749e772e1c05a9144aa
5
5
  SHA512:
6
- metadata.gz: b43c800a66632c08a8c9c6d35367de3a127ebbf0abdfb0757cea7fb22501f4dc97e395e4b1ae2d57065c2c913a58e7f62dfa9a5cc4761c2f5c449d1f54448a4d
7
- data.tar.gz: ff012fb8f3133de9f6002a35d733ea178828970f530c5c8f36239fdda605756f6d76b8a550690e2ac52aa64c551b73889453443ddc17f945a33b1f02be2abd0b
6
+ metadata.gz: 9ce4b4ddb86e640a3fa56325557db23b0fa19a4ae3692997c4c45ac97562507fd86c3b3369df761339ee22ff62390f70a83d9caeb4b31310fef8b79a42cd0f49
7
+ data.tar.gz: 9886cf6b18e0ed17aaa848376d979a31b4a3f90a55da17a2ffad997569d7847a08a137d3d62b62151a0012943715ded7572d718e41ce7d5227dbd025d117d44a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 11.0.2
2
+ - Validate that required functionality in Elasticsearch is available upon initial connection [#1015](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1015)
3
+
1
4
  ## 11.0.1
2
5
  - Fix: DLQ regression shipped in 11.0.0 [#1012](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1012)
3
6
  - [DOC] Fixed broken link in list item [#1011](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1011)
data/docs/index.asciidoc CHANGED
@@ -514,7 +514,7 @@ overwritten with a warning.
514
514
  * Default value is `logs`.
515
515
 
516
516
  The data stream type used to construct the data stream at index time.
517
- Currently, only `logs` and `metrics`are supported.
517
+ Currently, only `logs`, `metrics` and `synthetics` are supported.
518
518
 
519
519
  [id="plugins-{type}s-{plugin}-doc_as_upsert"]
520
520
  ===== `doc_as_upsert`
@@ -11,7 +11,7 @@ module LogStash; module Outputs; class ElasticSearch
11
11
  # @param url [LogStash::Util::SafeURI] ES node URL
12
12
  # @return [Boolean] true if provided license is deemed appropriate
13
13
  def appropriate_license?(pool, url)
14
- license = pool.get_license(url)
14
+ license = extract_license(pool.get_license(url))
15
15
  case license_status(license)
16
16
  when 'active'
17
17
  true
@@ -24,20 +24,26 @@ module LogStash; module Outputs; class ElasticSearch
24
24
  end
25
25
  end
26
26
 
27
+ NO_LICENSE = {}.freeze
28
+ private_constant :NO_LICENSE
29
+
30
+ def extract_license(license)
31
+ license.fetch("license", NO_LICENSE)
32
+ end
33
+
27
34
  def license_status(license)
28
- license.fetch("license", {}).fetch("status", nil)
35
+ license.fetch("status", nil)
29
36
  end
30
37
 
31
38
  private
32
39
 
33
40
  def warn_no_license(url)
34
- @logger.error("Connecting to an OSS distribution of Elasticsearch is no longer supported, " +
35
- "please upgrade to the default distribution of Elasticsearch", url: url.sanitized.to_s)
41
+ @logger.error("Could not connect to a compatible version of Elasticsearch", url: url.sanitized.to_s)
36
42
  end
37
43
 
38
44
  def warn_invalid_license(url, license)
39
- @logger.warn("WARNING: Current Elasticsearch license is not active, " +
40
- "please check Elasticsearch's licensing information", url: url.sanitized.to_s, license: license)
45
+ @logger.warn("Elasticsearch license is not active, please check Elasticsearch’s licensing information",
46
+ url: url.sanitized.to_s, license: license)
41
47
  end
42
48
 
43
49
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-elasticsearch'
3
- s.version = '11.0.1'
3
+ s.version = '11.0.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: 11.0.1
4
+ version: 11.0.2
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-20 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement