Install and Remove Elasticsearch Plugins
Elasticsearch plugins extend its functionality — common ones include repository plugins for S3/GCS snapshots, analysis plugins for language support, and security plugins.
Install a plugin
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch PLUGIN_NAME
The --batch flag skips the interactive confirmation prompt (useful for scripts).
Common plugins
# AWS S3 repository (for snapshots to S3)
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch repository-s3
# GCS repository (Google Cloud Storage)
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch repository-gcs
# ICU analysis (Unicode text analysis)
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch analysis-icu
List installed plugins
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin list
Remove a plugin
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin remove PLUGIN_NAME
Restart Elasticsearch after plugin changes
sudo systemctl restart elasticsearch
Note: Plugin installation requires a restart to take effect. In a multi-node cluster, perform rolling restarts to avoid downtime.