Working with plugins

Logstash has a rich collection of input, filter, codec and output plugins. Plugins are available as self-contained packages called gems and hosted on The plugin manager accessed via bin/logstash-plugin script is used to manage the lifecycle of plugins in your Logstash deployment. You can install, uninstall and upgrade plugins using the Command Line Interface (CLI) invocations described below.

Listing plugins

Logstash release packages bundle common plugins so you can use them out of the box. To list the plugins currently available in your deployment:

bin/logstash-plugin list 
bin/logstash-plugin list --verbose 
bin/logstash-plugin list '*namefragment*' 
bin/logstash-plugin list --group output 

Will list all installed plugins

Will list installed plugins with version information

Will list all installed plugins containing a namefragment

Will list all installed plugins for a particular group (input, filter, codec, output)

Adding plugins to your deployment

The most common situation when dealing with plugin installation is when you have access to internet. Using this method, you will be able to retrieve plugins hosted on the public repository ( and install on top of your Logstash installation.

bin/logstash-plugin install logstash-output-kafka

Once the plugin is successfully installed, you can start using it in your configuration file.

Advanced: Adding a locally built plugin

In some cases, you want to install plugins which have not yet been released and not hosted on Logstash provides you the option to install a locally built plugin which is packaged as a ruby gem. Using a file location:

bin/logstash-plugin install /path/to/logstash-output-kafka-1.0.0.gem

Advanced: Using --pluginpath

Using the --pluginpath flag, you can load a plugin source code located on your file system. Typically this is used by developers who are iterating on a custom plugin and want to test it before creating a ruby gem.

bin/logstash --pluginpath /opt/shared/lib/logstash/input/my-custom-plugin-code.rb

Updating plugins

Plugins have their own release cycle and are often released independent of Logstash’s core release cycle. Using the update subcommand you can get the latest or update to a particular version of the plugin.

bin/logstash-plugin update 
bin/logstash-plugin update logstash-output-kafka 

will update all installed plugins

will update only this plugin

Removing plugins

If you need to remove plugins from your Logstash installation:

bin/logstash-plugin uninstall logstash-output-kafka

Proxy Support

The previous sections relied on Logstash being able to communicate with In certain environments, Forwarding Proxy is used to handle HTTP requests. Logstash Plugins can be installed and updated through a Proxy by setting the HTTP_PROXY environment variable:

export HTTP_PROXY=

bin/logstash-plugin install logstash-output-kafka

Once set, plugin commands install, update can be used through this proxy.