- Version: 5alpha5 (repo install)
- Operating System: Centos 7
- Config File
very elementary
input {
tcp {
port => 5000
type => syslog
}
udp {
port => 5000
type => syslog
}
}
output {
kafka {
topic_id => CUSTOMER2
compression_type => gzip
}
}
- Steps to Reproduce:
gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.gem install logstash-core-event-java -v '5.0.0.pre.alpha5' succeeds before bundling.@splitbrains thanks for filing this issue. We've fixed this in subsequent Kafka fixes and will also be fixed in our next pre-release. Until then, you can do:
bin/logstash-plugin update logstash-input-kafka
@suyograo thanks for your response. I guess i'll have to wait for the next pre-release, since I am unable to update (as mentioned in the above post)
Is there a date set for the next pre-release already?
@splitbrains what command did you run to update? It isn't listed in your bullets. 5.0.4 is already released so you should be able to to either download the gem and manually install it or run the command suyograo mentioned.
https://rubygems.org/gems/logstash-input-kafka/versions/5.0.4
https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html#installing-local-plugins
I get the following:
/usr/share/logstash/bin/logstash-plugin install logstash-output-kafka-5.0.4.gem
Validating logstash-output-kafka-5.0.4.gem
Installing logstash-output-kafka
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (5.0.0.pre.alpha5), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.0.0.pre.alpha5'` succeeds before bundling.
I was able to get this to at least function by manually downloading the plugins (both input and output) and do an offline install. The problem is that the install hangs (and requires javac?). After canceling it after it hangs, logstash seems to operate just fine.
With a clean install of logstash 5 alpha 5, logstash tells me it can't find a plugin for my kafka input stanza.
Same issue
@dcode out of curiousity, how did you manage to install this plugin offline?
I'm battling with similar issue in https://github.com/elastic/logstash/issues/5966 and can't find working solution.
@shoggeh I just brute forced my way through and it happened to work. So, the plugin includes the necessary JAR files to access Kafka. I assume this is why it's running javac, to recompile for the local platform. It stalls for a bit and I cancelled it by hitting Ctrl+c. I checked that the plugin was installed in /usr/share/logstash/vendor/local_gems/, and then it just worked.
Obviously sketchy, but I was able to reproduce that 4 times successfully, with only one failure when I cancelled too early.
That's completely insane, but seems to be working for other plugins too.
The related kafka bug seems to be fixed in the latest releases so do th eoffline issue.
Most helpful comment
That's completely insane, but seems to be working for other plugins too.