Plugin lifecycle management

Logstash plugin management is done through the install script that is shipped with the Logstash installation:

$LOGSTASH_HOME/bin/plugin

Installing a plugin

To install a plugin, we can issue the following command:

$bin/plugin install <plug_in_name>

plug_in_name is the name of the plugin as mentioned in the gem name in https://rubygems.org/ or in the Logstash plugin repository.

Let's take the following command as an example:

$bin/plugin install logstash-input-rabbitmq

The preceding command will install the rabbitmq input plugin to the Logstash installation. You can also specify the --version parameter to install a specific version of the plugin.

Note

RabbitMQ (https://www.rabbitmq.com) is a messaging broker, a common platform to send and receive messages, which holds messages until received.

Also, plugins downloaded from https://rubygems.org/ can be installed using the file path as follows:

$bin/plugin install path/to/logstash-input-rabbitmq-0.1.0.gem

You can also explore all available Logstash plugins by searching https://rubygems.org/ for "logstash".

Installing a plugin

Plugin download page at https://rubygems.org/

Updating a plugin

To update a previously installed plugin, we can issue the command:

$bin/plugin update <plug_in_name>

Let's take the following command as an example:

$bin/plugin update logstash-input-rabbitmq

The preceding command will update the logstash-input-rabbitmq plugin to the latest version. Please make sure to test the updates well before moving on to the production environment.

Uninstalling a plugin

To uninstall a plugin, we can issue the following command:

$bin/plugin uninstall <plug_in_name>

Let's take the following command as an example:

$bin/plugin uninstall logstash-input-rabbitmq

The preceding command will uninstall the logstash-input-rabbitmq plugin from the Logstash installation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.216.71