Closed luizgpsantos closed 4 years ago
The problem is due to the fact that the plugins code rely on a runtime library https://github.com/logstash-plugins/logstash-input-kinesis/blob/c11b93c95de3789f62f985816ed6b6b5aeca1d1f/lib/logstash/inputs/kinesis.rb#L77 that's not anymore used since with 7.9.0
ships JCL (https://github.com/elastic/logstash/pull/11853/files) and the JCL implementation doesn't have that logger
property
The problem is that the plugin uses commons logging instead of the facility @logger provided by LS enviroment. This is something hackish, in LS 7.8.0
the class of kinesis_logger = org.apache.commons.logging::LogFactory.getLog("com.amazonaws.services.kinesis").logger
was Java::OrgApacheCommonsLoggingImpl::Jdk14Logger
while in 7.9.0
is Java::OrgApacheLoggingLog4jJcl::Log4jLog
In 7.8.0 the code uses the logger
property from
https://github.com/apache/commons-logging/blob/23b17c3889d2efcac8509c20f94ef66b73542136/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java#L162
I have the following dummy pipeline:
When I try to run it on Logstash
7.9.0
it will throw the following exception:The same pipeline runs just fine in Logstash
7.8.0
: