Elasticsearch Plugins Management – Listing, Removing and Updating Plugins

Introduction – Elasticsearch Plugins

In our previous tutorial, we discussed what is elasticsearch plugin and how to install it. Also we have discussed how to install elasticsearch and ELK stack on CentOS 7. Now, in this article we will see how to Listing, Removing and Updating elasticsearch installed plugin.

Listing Plugins

Following is the command to list of the currently loaded plugins,

[root@localhost elasticsearch]$ bin/elasticsearch-plugin list

Alternatively, use the node-info API to find out which plugins are installed on each node in the cluster.

Removing plugins

Plugins can be removed manually, by deleting the appropriate directory under plugins/, or using the following command:

[root@localhost elasticsearch]$ bin/elasticsearch-plugin remove [pluginname]

Note: After a plugin has been removed, you will need to restart the node to complete the removal process.

By default, plugin configuration files (if any) are preserved on disk; this is so that configuration is not lost while upgrading a plugin. If you wish to purge the configuration files while removing a plugin, use -p or --purge. This can option can be used after a plugin is removed to remove any lingering configuration files.

Updating plugins

Plugins are built for a specific version of Elasticsearch, and therefore must be reinstalled each time Elasticsearch is updated. Following is the command to update of the currently loaded plugins,

[root@localhost elasticsearch]$ bin/elasticsearch-plugin remove [pluginname]
[root@localhost elasticsearch]$ bin/elasticsearch-plugin install [pluginname]

References:
https://www.elastic.co/guide/en/elasticsearch/plugins/current/listing-removing-updating.html

Avinash Pawar

DevOps Practitioner interested in learning new technologies and interested in sharing the knowledge with others.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle Plus

Avinash Pawar

DevOps Practitioner interested in learning new technologies and interested in sharing the knowledge with others.

Leave a Reply