We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0af1cfb commit 78d2181Copy full SHA for 78d2181
lib/logstash/outputs/elasticsearch/template_manager.rb
@@ -15,7 +15,7 @@ def self.install_template(plugin)
15
def self.get_es_major_version(client)
16
# get the elasticsearch version of each node in the pool and
17
# pick the biggest major version
18
- client.connected_es_versions.uniq.map {|version| version.split(".").first.to_i}.sort.last
+ client.connected_es_versions.uniq.map {|version| version.split(".").first.to_i}.max
19
end
20
21
def self.get_template(path, es_major_version)
0 commit comments