Skip to content

Commit e761a3c

Browse files
authored
Remove irrelevant warning (#1202)
* Remove irrelevant warning This commit removes an old warning which is no longer relevant to any supported stack version. It is noisy and there is no action for the user to take. * Add changelog entry for log removal * 11.22.11 release prep Update version in preparation for a release.
1 parent 6a32bbe commit e761a3c

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 11.22.11
2+
- Remove irrelevant log warning about elastic stack version [#1202](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1202)
3+
14
## 11.22.10
25
- Add `x-elastic-product-origin` header to Elasticsearch requests [#1195](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1195)
36

lib/logstash/outputs/elasticsearch/http_client/pool.rb

+1-8
Original file line numberDiff line numberDiff line change
@@ -515,20 +515,13 @@ def set_last_es_version(version, url)
515515
major = major_version(version)
516516
if @maximum_seen_major_version.nil?
517517
@logger.info("Elasticsearch version determined (#{version})", es_version: major)
518-
set_maximum_seen_major_version(major)
518+
@maximum_seen_major_version = major
519519
elsif major > @maximum_seen_major_version
520520
warn_on_higher_major_version(major, url)
521521
@maximum_seen_major_version = major
522522
end
523523
end
524524

525-
def set_maximum_seen_major_version(major)
526-
if major >= 6
527-
@logger.warn("Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type", es_version: major)
528-
end
529-
@maximum_seen_major_version = major
530-
end
531-
532525
def warn_on_higher_major_version(major, url)
533526
@logger.warn("Detected a node with a higher major version than previously observed, " +
534527
"this could be the result of an Elasticsearch cluster upgrade",

logstash-output-elasticsearch.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'logstash-output-elasticsearch'
3-
s.version = '11.22.10'
3+
s.version = '11.22.11'
44
s.licenses = ['apache-2.0']
55
s.summary = "Stores logs in Elasticsearch"
66
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"

0 commit comments

Comments
 (0)