File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
lib/logstash/filters/elasticsearch Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11## 4.1.1
2- - Adds elastic-transport client support [ #191 ] ( https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/191 )
2+ - Add elastic-transport client support used in elasticsearch-ruby 8.x [ #191 ] ( https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/191 )
33
44## 4.1.0
55 - Added support for custom headers [ #188 ] ( https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/188 )
Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ def setup_api_key(api_key)
100100 end
101101
102102 def get_transport_client_class
103+ # LS-core includes `elasticsearch` gem. The gem is composed of two separate gems: `elasticsearch-api` and `elasticsearch-transport`
104+ # And now `elasticsearch-transport` is old, instead we have `elastic-transport`.
105+ # LS-core updated `elasticsearch` > 8: https://github.com/elastic/logstash/pull/17161
106+ # Following source bits are for the compatibility to support both `elasticsearch-transport` and `elastic-transport` gems
103107 require "elasticsearch/transport/transport/http/manticore"
104108 es_transport_client_type = "elasticsearch_transport"
105109 ::Elasticsearch ::Transport ::Transport ::HTTP ::Manticore
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Gem::Specification.new do |s|
2121
2222 # Gem dependencies
2323 s . add_runtime_dependency "logstash-core-plugin-api" , ">= 1.60" , "<= 2.99"
24- s . add_runtime_dependency 'elasticsearch' , ">= 7.14.9" # LS >= 6.7 and < 7.14 all used version 5.0.5
24+ s . add_runtime_dependency 'elasticsearch' , ">= 7.14.9" , '< 9'
2525 s . add_runtime_dependency 'manticore' , ">= 0.7.1"
2626 s . add_runtime_dependency 'logstash-mixin-ca_trusted_fingerprint_support' , '~> 1.0'
2727 s . add_development_dependency 'cabin' , [ '~> 0.6' ]
You can’t perform that action at this time.
0 commit comments