diff --git a/CHANGELOG.md b/CHANGELOG.md index 51961c8c..b83787c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 11.6.1 + - Fixed issue where exceptions logged by the Manticore adapter could be passed both a `message` and a context map including a `message`, resulting in log events that could not be reasonably be parsed when formatted with Log4j2's JSONLayout + ## 11.6.0 - Added support for `ca_trusted_fingerprint` when run on Logstash 8.3+ [#1074](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1074) diff --git a/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb b/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb index ba128007..2c2b8e1f 100644 --- a/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb +++ b/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb @@ -88,7 +88,7 @@ def perform_request(url, method, path, params={}, body=nil) end def log_request_error(e) - details = { message: e.message, exception: e.class } + details = { exception: e.class } details[:cause] = e.cause if e.respond_to?(:cause) details[:backtrace] = e.backtrace if @logger.debug? @@ -101,7 +101,7 @@ def log_request_error(e) :info end - @logger.send level, "Failed to perform request", details + @logger.send level, "Failed to perform request: #{e.message}", details log_java_exception(details[:cause], :debug) if details[:cause] && @logger.debug? end diff --git a/logstash-output-elasticsearch.gemspec b/logstash-output-elasticsearch.gemspec index 92813f5d..745548c5 100644 --- a/logstash-output-elasticsearch.gemspec +++ b/logstash-output-elasticsearch.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'logstash-output-elasticsearch' - s.version = '11.6.0' + s.version = '11.6.1' s.licenses = ['apache-2.0'] s.summary = "Stores logs in Elasticsearch" 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"