This version of the OpenSearch documentation is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

Custom branding

Introduced 1.2

By default, OpenSearch Dashboards uses the OpenSearch logo, but if you want to use custom branding elements such as the favicon or main Dashboards logo, you can do so by editing opensearch_dashboards.yml or by including a custom opensearch_dashboards.yml file when you start your OpenSearch cluster.

For example, if you’re using Docker to start your OpenSearch cluster, include the following lines in the opensearch-dashboards section of your docker-compose.yml file:

  1. volumes:
  2. - ./opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml

Doing so replaces the Docker image’s default opensearch_dashboards.yml with your custom opensearch_dashboards.yml file, so be sure to include your desired settings as well. For example, if you want to configure TLS for OpenSearch Dashboards, see Configure TLS for OpenSearch Dashboards.

Re-launch OpenSearch Dashboards, and OpenSearch Dashboards now uses your custom elements.

Branding elements

The following elements in OpenSearch Dashboards are customizable:

OpenSearch customizable branding elements

SettingCorresponding branding element
logoHeader logo. See #1 in the image.
markOpenSearch Dashboards mark. See #2 in the image.
loadingLogoLoading logo used when OpenSearch Dashboards is starting. See #3 in the image.
faviconUrlWebsite icon. Loads next to the application title. See #4 in the image.
applicationTitleThe application’s title. See #5 in the image.

To consolidate navigation controls and reduce the space the header takes up on the page, see Condensed header.

To start using your own branding elements in OpenSearch Dashboards, first uncomment this section of opensearch_dashboards.yml:

  1. # opensearchDashboards.branding:
  2. # logo:
  3. # defaultUrl: ""
  4. # darkModeUrl: ""
  5. # mark:
  6. # defaultUrl: ""
  7. # darkModeUrl: ""
  8. # loadingLogo:
  9. # defaultUrl: ""
  10. # darkModeUrl: ""
  11. # faviconUrl: ""
  12. # applicationTitle: ""

Add the URLs you want to use as branding elements to the appropriate setting. Valid image types are SVG, PNG, and GIF.

Customization of dark mode Dashboards is also available, but you first must supply a valid link to defaultUrl, and then link to your preferred image with darkModeUrl. If you don’t provide a darkModeUrl link, then Dashboards uses the provided defaultUrl element for dark mode. You are not required to customize all branding elements, so if you wanted to, it’s perfectly valid to change just the logo or any other element. Leave unchanged elements as commented.

The following example demonstrates how to use SVG files as logos but leaves the other elements as defaults.

  1. logo:
  2. defaultUrl: "https://example.com/validUrl.svg"
  3. darkModeUrl: "https://example.com/validDarkModeUrl.svg"
  4. # mark:
  5. # defaultUrl: ""
  6. # darkModeUrl: ""
  7. # loadingLogo:
  8. # defaultUrl: ""
  9. # darkModeUrl: ""
  10. # faviconUrl: ""
  11. applicationTitle: "My custom application"

We recommend linking to images that are hosted on a web server, but if you really want to use locally hosted images, save your images inside assets, and then configure opensearch_dashboards.yml to use the correct paths. You can access locally stored images through the ui/assets folder.

The following example assumes the default port of 5601 that Dashboards uses and demonstrates how to link to locally stored images.

  1. logo:
  2. defaultUrl: "https://localhost:5601/ui/assets/my-own-image.svg"
  3. darkModeUrl: "https://localhost:5601/ui/assets/dark-mode-my-own-image.svg"
  4. mark:
  5. defaultUrl: "https://localhost:5601/ui/assets/my-own-image2.svg"
  6. darkModeUrl: "https://localhost:5601/ui/assets/dark-mode-my-own-image2.svg"
  7. # loadingLogo:
  8. # defaultUrl: ""
  9. # darkModeUrl: ""
  10. # faviconUrl: ""
  11. applicationTitle: "My custom application"

Condensed header

The condensed header view reduces the footprint of the header and frees up space on the page by combining navigational elements into a single header bar.

The current default view remains close in appearance to the two-bar header offered in the previous version of Dashboards, with minor differences. To specify the condensed header, add the configuration property useExpandedHeader to the opensearch_dashboards.yml file and set the value to false, as the following example illustrates.

  1. # opensearchDashboards.branding:
  2. # logo:
  3. defaultUrl: "https://example.com/sample.svg"
  4. darkModeUrl: "https://example.com/dark-mode-sample.svg"
  5. # mark:
  6. # defaultUrl: ""
  7. # darkModeUrl: ""
  8. # loadingLogo:
  9. # defaultUrl: ""
  10. # darkModeUrl: ""
  11. # faviconUrl: ""
  12. applicationTitle: "my custom application"
  13. useExpandedHeader: false

In a future release, default behavior will become useExpandedHeader: false. If you want to retain the default view in subsequent releases, you can explicitly set the property to true in advance. Alternatively, you can also do this when upgrading.

The condensed view header appears as in the example below.

Condensed header

Header elementDescription
OpenSearch logoSee #1. Functions as the home button.
Header barSee #2. A single header bar used for all navigation controls.

The default view remains close to the traditional view, with minor changes.

Default header

Header elementDescription
Home buttonSee #1. Returns to the home page and provides an indication when a page is loading.
Header labelSee #2. The label also functions as a home button.
Navigation controlsSee #3. Additional navigation controls on right-side insertion points.

Preserving nagivation elements in the default view

You can continue using the top header bar in the default view for custom navigation links (such as menu items and plugins). Follow the steps below to keep these elements in the top header in the default view.

  1. Replace the property coreStart.chrome.navControls.registerRight(...) with coreStart.chrome.navControls.registerExpandedRight(...) and then replace the property coreStart.chrome.navControls.registerCenter(...) with coreStart.chrome.navControls.registerExpandedCenter(...)

  2. Make sure the configuration property useExpandedHeader is explicitly set to true.

Sample configuration

The following configuration enables the Security plugin and SSL within OpenSearch Dashboards and uses custom branding elements to replace the OpenSearch logo and application title.

  1. server.host: "0"
  2. opensearch.hosts: ["https://localhost:9200"]
  3. opensearch.ssl.verificationMode: none
  4. opensearch.username: "kibanaserver"
  5. opensearch.password: "kibanaserver"
  6. opensearch.requestHeadersAllowlist: [ authorization,securitytenant ]
  7. #server.ssl.enabled: true
  8. #server.ssl.certificate: /path/to/your/server/certificate
  9. #server.ssl.key: /path/to/your/server/key
  10. opensearch_security.multitenancy.enabled: true
  11. opensearch_security.multitenancy.tenants.preferred: ["Private", "Global"]
  12. opensearch_security.readonly_mode.roles: ["kibana_read_only"]
  13. # Use this setting if you are running opensearch-dashboards without https
  14. opensearch_security.cookie.secure: false
  15. opensearchDashboards.branding:
  16. logo:
  17. defaultUrl: "https://example.com/sample.svg"
  18. darkModeUrl: "https://example.com/dark-mode-sample.svg"
  19. # mark:
  20. # defaultUrl: ""
  21. # darkModeUrl: ""
  22. # loadingLogo:
  23. # defaultUrl: ""
  24. # darkModeUrl: ""
  25. # faviconUrl: ""
  26. applicationTitle: "Just some testing"