Get plugin version installed in logstash

October 2024 ยท 1 minute read

Is there any way to find the specific logstash plugin version ?

I'm able to list the plugin using bin/logstash-plugin list 'logstash-input-kafka', and in help of bin/logstash-plugin, I wasn't able to find any flags to find the version of plugin installed in logstash.

2 Answers

To find the version of a plugin, you can list the vendor/bundle/jruby/1.9/gems/ folder and you'll see the plugin versions you're running. For instance, on Logstash 2.3.2, you'd see this for the logstash-input-kafka plugin:

ls -la vendor/bundle/jruby/1.9/gems | grep "logstash-input-kafka" > logstash-input-kafka-2.0.8 

You can also find the version number in the gemspec file inside the plugin folder.

To find the logstash version:

With Logstash 2.x, you can run this:

bin/logstash version 

With Logstash 5.x (still in alpha stage), you can run this:

bin/logstash -V 

UPDATE

In the meantime, I found the --verbose flag documented here. You can also append a specific plugin name. It goes like this:

bin/logstash-plugin list --verbose logstash-input-kafka 

Will yield

logstash-input-kafka (2.0.8) 
5

@Val answer still works, you can do it via existing flags in bin/logstash-plugin:

bin/logstash-plugin list --verbose logstash-input-kafka or

bin/logstash-plugin list --verbose kafka

Thanks to: https://github.com/elastic/logstash/issues/5816#issuecomment-241966409

0

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJoanJpYWmCd3%2BOoJytZaChwqi1zWatnqqjnryvecinqq2ZnKGypXnIp2Slp5eowaK%2Fxw%3D%3D