Skip to content

Managing OpenSearch Dashboards plugins ​

OpenSearch Dashboards provides a command line tool called opensearch-dashboards-plugin for managing plugins. This tool allows you to:

  • List installed plugins.
  • Install plugins.
  • Remove an installed plugin.

Plugin compatibility ​

WARNING

Major, minor, and patch plugin versions must match OpenSearch major, minor, and patch versions in order to be compatible. For example, plugins versions 2.3.0.x work only with OpenSearch 2.3.0.

Prerequisites ​

Available plugins ​

The following table lists available OpenSearch Dashboards plugins.

Plugin NameRepositoryEarliest Available Version
Alerting Dashboardsalerting-dashboards-plugin1.0.0
Anomaly Detection Dashboardsanomaly-detection-dashboards-plugin1.0.0
Custom Import Maps Dashboardsdashboards-maps2.2.0
Search Relevance Dashboardsdashboards-search-relevance2.4.0
Gantt Chart Dashboardsgantt-chart1.0.0
Index Management Dashboardsindex-management-dashboards-plugin1.0.0
Notebooks Dashboardsdashboards-notebooks1.0.0
Notifications Dashboardsdashboards-notifications2.0.0
Observability Dashboardsdashboards-observability2.0.0
Query Workbench Dashboardsquery-workbench1.0.0
Reports Dashboardsdashboards-reporting1.0.0
Security Analytics Dashboardssecurity-analytics-dashboards-plugin2.4.0
Security Dashboardssecurity-dashboards-plugin1.0.0

Install ​

Navigate to the OpenSearch Dashboards home directory (for example, /usr/share/opensearch-dashboards) and run the install command for each plugin.

Viewing a list of installed plugins ​

To view the list of installed plugins from the command line, use the following command:

bash
sudo bin/opensearch-dashboards-plugin list

Remove plugins ​

To remove a plugin:

bash
sudo bin/opensearch-dashboards-plugin remove <plugin-name>

Then remove all associated entries from opensearch_dashboards.yml.

For certain plugins, you must also remove the "optimize" bundle. This is a sample command for the Anomaly Detection plugin:

bash
sudo rm /usr/share/opensearch-dashboards/optimize/bundles/opensearch-anomaly-detection-opensearch-dashboards.*

Then restart OpenSearch Dashboards. After you remove any plugin, OpenSearch Dashboards performs an optimize operation the next time you start it. This operation takes several minutes even on fast machines, so be patient.

Updating plugins ​

OpenSearch Dashboards doesn’t update plugins. Instead, you have to remove the old version and its optimized bundle, reinstall them, and restart OpenSearch Dashboards:

  1. Remove the old version:

    bash
    sudo bin/opensearch-dashboards-plugin remove <plugin-name>
  2. Remove the optimized bundle:

    bash
    sudo rm /usr/share/opensearch-dashboards/optimize/bundles/<bundle-name>
  3. Reinstall the new version:

    bash
    sudo bin/opensearch-dashboards-plugin install <plugin-name>
  4. Restart OpenSearch Dashboards.

For example, to remove and reinstall the Anomaly Detection plugin:

bash
sudo bin/opensearch-dashboards-plugin remove anomalyDetectionDashboards
sudo rm /usr/share/opensearch-dashboards/optimize/bundles/opensearch-anomaly-detection-opensearch-dashboards.*
sudo bin/opensearch-dashboards-plugin install <AD OpenSearch Dashboards plugin artifact URL>

Released under the Apache License 2.0. Forum · Contact us