• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install OpenSearch Dashboards on Ubuntu 20.04

  • 00:33 cat /etc/os-release
  • 01:00 systemctl status opensearch
  • 01:24 curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring
  • 01:35 echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable main" | sudo tee /etc/apt/sources.list.d/ope
  • 01:44 apt-get update
  • 02:12 apt list -a opensearch-dashboards
  • 02:56 apt-get install opensearch-dashboards=2.12.0
  • 03:43 systemctl enable opensearch-dashboards
  • 04:04 systemctl start opensearch-dashboards
  • 04:24 systemctl status opensearch-dashboards
7853

To Install OpenSearch Dashboards On Ubuntu 20.04

Introduction

OpenSearch Dashboards is the primary visualization tool for data within OpenSearch, also doubling as a user interface for various OpenSearch plugins such as security, alerting, Index State Management, SQL, and additional functionalities.

Procedure Steps

Step 1: Check the OS version by using the below Command.

root@ubuntu:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Step 2: Before installing the opensearch Dashboard need to check the status of opensearch.

root@ubuntu:~# systemctl status opensearch
● opensearch.service - OpenSearch
     Loaded: loaded (/lib/systemd/system/opensearch.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2024-05-17 01:29:56 PDT; 1 weeks 0 days ago
       Docs: https://opensearch.org/
   Main PID: 17246 (java)
      Tasks: 70 (limit: 4556)
     Memory: 1.1G
     CGroup: /system.slice/opensearch.service
             └─17246 /usr/share/opensearch/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=>

May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at org.opensearch.monitor.jvm.JvmGcMonitorService>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at org.opensearch.threadpool.Scheduler$Rescheduli>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at org.opensearch.common.util.concurrent.ThreadCo>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at org.opensearch.common.util.concurrent.Abstract>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at java.base/java.util.concurrent.Executors$Runna>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at java.base/java.util.concurrent.FutureTask.run(>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at java.base/java.util.concurrent.ScheduledThread>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at java.base/java.util.concurrent.ThreadPoolExecu>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at java.base/java.util.concurrent.ThreadPoolExecu>
May 24 19:27:25 ubuntu systemd-entrypoint[17246]:         at java.base/java.lang.Thread.run(Thread.java:158>

Step 3: Import the public GPG key by using the below command. This key is used to verify that the APT repository is signed.

root@ubuntu:~#  curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4300  100  4300    0     0  39090      0 --:--:-- --:--:-- --:--:-- 39090

Step 4: Create an APT repository for OpenSearch Dashboard by using the below command.

root@ubuntu:~# echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-dashboards-2.x.list
deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable main

Step 5: Verify that the repository was created successfully by using the below command.

root@ubuntu:~# apt-get update
Hit:1 https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable InRelease
Get:2 https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable InRelease [7,536 B]
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:6 https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable/main amd64 Packages [2,477 B]
Hit:7 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 10.0 kB in 3s (2,903 B/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable InRelease' doesn't support architecture 'i386'

Step 6: With the repository information added, list all available versions of OpenSearch Dashboard by using the below command.

root@ubuntu:~# apt list -a opensearch-dashboards
Listing... Done
opensearch-dashboards/stable 2.14.0 amd64
opensearch-dashboards/stable 2.13.0 amd64
opensearch-dashboards/stable 2.12.0 amd64
opensearch-dashboards/stable 2.11.1 amd64
opensearch-dashboards/stable 2.11.0 amd64
opensearch-dashboards/stable 2.10.0 amd64
opensearch-dashboards/stable 2.9.0 amd64
opensearch-dashboards/stable 2.8.0 amd64
opensearch-dashboards/stable 2.7.0 amd64
opensearch-dashboards/stable 2.6.0 amd64
opensearch-dashboards/stable 2.5.0 amd64

Step 7: To install a specific version of OpenSearch Dashboards, pass a version number after the package name. Unless otherwise indicated, the latest available version of OpenSearch is installed.

root@ubuntu:~# apt-get install opensearch-dashboards=2.12.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  opensearch-dashboards
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 305 MB of archives.
After this operation, 1,177 MB of additional disk space will be used.
Get:1 https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable/main amd64 opensearch-dashboards amd64 2.12.0 [305 MB]
Fetched 305 MB in 27s (11.2 MB/s)
Selecting previously unselected package opensearch-dashboards.
(Reading database ... 164421 files and directories currently installed.)
Preparing to unpack .../opensearch-dashboards_2.12.0_amd64.deb ...
Running OpenSearch-Dashboards Pre-Installation Script
Unpacking opensearch-dashboards (2.12.0) ...
Setting up opensearch-dashboards (2.12.0) ...
Running OpenSearch-Dashboards Post-Installation Script
### NOT starting on installation, please execute the following statements to configure opensearch-dashboards service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable opensearch-dashboards.service
### You can start opensearch-dashboards service by executing
 sudo systemctl start opensearch-dashboards.service
### Upcoming breaking change in packaging
 In a future release of OpenSearch Dashboards, we plan to change the permissions associated with access to installed files
 If you are configuring tools that require read access to the OpenSearch Dashboards configuration files, we recommend you add the user that runs these tools to the 'opensearch-dashboards' group
 For more information, see https://github.com/opensearch-project/opensearch-build/pull/4043
Processing triggers for systemd (245.4-4ubuntu3.23) ...

Step 8: Once complete, enable and start the OpenSearch Dashboard by using the below command.

root@ubuntu:~# systemctl enable opensearch-dashboards
Synchronizing state of opensearch-dashboards.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable opensearch-dashboards
Created symlink /etc/systemd/system/multi-user.target.wants/opensearch-dashboards.service → /lib/systemd/system/opensearch-dashboards.service.
root@ubuntu:~# systemctl start opensearch-dashboards

Step 9: Verify the status of OpenSearch Dashboard by using the below command.

root@ubuntu:~# systemctl status opensearch-dashboards
● opensearch-dashboards.service - "OpenSearch Dashboards"
     Loaded: loaded (/lib/systemd/system/opensearch-dashboards.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2024-05-24 19:49:38 PDT; 29s ago
   Main PID: 22249 (node)
      Tasks: 11 (limit: 4556)
     Memory: 315.8M
     CGroup: /system.slice/opensearch-dashboards.service
             └─22249 /usr/share/opensearch-dashboards/node/bin/node /usr/share/opensearch-dashboards/src/cl>

May 24 19:50:01 ubuntu opensearch-dashboards[22249]: [agentkeepalive:deprecated] options.freeSocketKeepAliv>
May 24 19:50:01 ubuntu opensearch-dashboards[22249]: [agentkeepalive:deprecated] options.freeSocketKeepAliv>
May 24 19:50:01 ubuntu opensearch-dashboards[22249]: [agentkeepalive:deprecated] options.freeSocketKeepAliv>
May 24 19:50:03 ubuntu opensearch-dashboards[22249]: {"type":"log","@timestamp":"2024-05-25T02:50:03Z","tag>
May 24 19:50:05 ubuntu opensearch-dashboards[22249]: {"type":"log","@timestamp":"2024-05-25T02:50:05Z","tag>
May 24 19:50:05 ubuntu opensearch-dashboards[22249]: {"type":"log","@timestamp":"2024-05-25T02:50:05Z","tag>
May 24 19:50:07 ubuntu opensearch-dashboards[22249]: {"type":"log","@timestamp":"2024-05-25T02:50:07Z","tag>
May 24 19:50:07 ubuntu opensearch-dashboards[22249]: {"type":"log","@timestamp":"2024-05-25T02:50:07Z","tag>
May 24 19:50:07 ubuntu opensearch-dashboards[22249]: {"type":"log","@timestamp":"2024-05-25T02:50:07Z","tag>
May 24 19:50:07 ubuntu opensearch-dashboards[22249]: {"type":"log","@timestamp":"2024-05-25T02:50:07Z","tag>

Step 10: Open web browser and access OpenSearch Dashboard by using default port 5601. Snap1

Step 11: Log in with the username and password which is created while installing opensearch. (For OpenSearch 2.12 and later, the password should be the custom admin password) Snap2

Step 12: Now we can see the OpenSearch Dashboard Snap3

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install OpenSearch Dashboard on Ubuntu 20.04. Your feedback is much welcome.

Tags:
elijah
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What are OpenSearch Dashboards?

A

OpenSearch Dashboards is an open-source visualization tool designed to work with OpenSearch. It allows you to explore, visualize, and share data from your OpenSearch clusters.

Q

How can I change the default port for OpenSearch Dashboards?

A

Modify the server.port setting in the opensearch_dashboards.yml configuration file.

Q

Can I run OpenSearch Dashboards behind a reverse proxy?

A

Yes, you can configure a reverse proxy like Nginx or Apache to forward requests to OpenSearch Dashboards.

Q

How do I configure OpenSearch Dashboards to connect to my OpenSearch cluster?

A

Edit the configuration file located at /etc/opensearch-dashboards/opensearch_dashboards.yml and set the opensearch.hosts parameter to the URL of your OpenSearch cluster.

Q

How do I secure OpenSearch Dashboards with SSL?

A

Configure SSL by setting server.ssl.enabled, server.ssl.key, and server.ssl.certificate in the opensearch_dashboards.yml file. You also need to set opensearch.ssl.verificationMode and provide the necessary certificates.

Related Tutorials in How to install OpenSearch Dashboards on Ubuntu 20.04

Related Tutorials in How to install OpenSearch Dashboards on Ubuntu 20.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install OpenSearch Dashboards on Ubuntu 20.04

Related Forums in How to install OpenSearch Dashboards on Ubuntu 20.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install OpenSearch Dashboards on Ubuntu 20.04

Related News in How to install OpenSearch Dashboards on Ubuntu 20.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.