• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News 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
{{postValue.id}}

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
{{postCtrl.cmtErrMsg}}

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.

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 legeek ?
Installation of the call center module

hello

I wish to install a call center in virtual with issabel, I downloaded the latest version of it , but I don' t arrive to install the call center module in issabel. please help me

thanks!

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.