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 +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +1 -1
- data/lib/logstash/outputs/elasticsearch/license_checker.rb +12 -6
- data/logstash-output-elasticsearch.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4d12d1aba765125efba841af202081a30171914e9b5dc6aca66772c546c3bd6
|
4
|
+
data.tar.gz: bbfe6f58cd3824fc67fd0c80a564f759a32863e0590a2749e772e1c05a9144aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 `
|
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("
|
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("
|
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("
|
40
|
-
|
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
|
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.
|
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-
|
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
|