Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get plugin version installed in logstash

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.

like image 601
Sumit Murari Avatar asked Nov 01 '25 03:11

Sumit Murari


1 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)
like image 92
Val Avatar answered Nov 03 '25 23:11

Val