Skip to content
This repository was archived by the owner on Mar 25, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.2
- Update loading of addons to conform with new naming scheme (replaced - with _)
## 2.0.1
- Make the default template doc_value aware
## 2.0.0
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
Expand Down
6 changes: 3 additions & 3 deletions lib/logstash/outputs/elasticsearch_java.rb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def client_options
end

@@plugins.each do |plugin|
name = plugin.name.split('-')[-1]
name = plugin.name.split('_')[-1]
client_settings.merge!(LogStash::Outputs::ElasticSearchJava.const_get(name.capitalize).create_client_config(self))
end

Expand Down Expand Up @@ -539,10 +539,10 @@ def retry_push(actions)
}
end

@@plugins = Gem::Specification.find_all{|spec| spec.name =~ /logstash-output-elasticsearch_java-/ }
@@plugins = Gem::Specification.find_all{|spec| spec.name =~ /logstash-output-elasticsearch_java_/ }

@@plugins.each do |plugin|
name = plugin.name.split('-')[-1]
name = plugin.name.split('_')[-1]
require "logstash/outputs/elasticsearch_java/#{name}"
end

Expand Down
2 changes: 1 addition & 1 deletion logstash-output-elasticsearch_java.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'logstash-output-elasticsearch_java'
s.version = '2.0.1'
s.version = '2.0.2'
s.licenses = ['apache-2.0']
s.summary = "Logstash Output to Elasticsearch using Java node/transport client"
s.description = "Output events to elasticsearch using the java client"
Expand Down