
Mastering Elastic Stack
By :

As we have already discussed the various type of plugins available in Logstash, let's understand how to list/install/update/remove a plugin using the logstash-plugin
script, which is present within the bin
folder of Logstash.
The usage of the plugin
command-line option is as follows:
bin/logstash-plugin [OPTIONS] SUBCOMMAND [ARG]
The various subcommands are list
, install
, remove
, update
, pack
, unpack
, and generate
.
list
is used to list the installed plugins, install
is used to install a plugin, remove
is used to remove a plugin, update
is used to update a plugin, pack
is used to package already installed plugins and unpack
is used to unpack packaged plugins.
To list all the plugins available in Logstash:
bin/logstash-plugin list
The various options available for list can be viewed using:
bin/logstash-plugin list --help
It displays options such as --installed
, --verbose
, --group NAME
.
To find an installed plugin using its name:
bin/logstash-plugin...