Elasticsearch is the distributed search and analytics engine at the heart of the Elastic Stack. Logstash and Beats facilitate collecting, aggregating, and enriching your data and storing it in Elasticsearch. Kibana enables you to interactively explore, visualize, and share insights into your data and manage and monitor the stack. Elasticsearch is where the indexing, search, and analysis magic happens.
We can install elasticsearch two way
Install ES using repository
4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
Download and install the public signing key:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
You need to install the apt-transport-http package on debian before proceeding.
sudo apt-get install apt-transport-http
Save the repository definition to /etc/apt/sources.list.d/elastic-8.x.list:
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
Note: These instructions do not use
add-apt-repositoryfor several reasons:
add-apt-repositoryadds entries to the system
/etc/apt/sources.listfile rather than a clean per-repository file in
add-apt-repositoryis not part of the default install on many distributions and requires a number of non-default dependencies.
Older versions of
add-apt-repositoryalways add a
deb-srcentry which will cause errors because we do not provide a source package. If you have added the
deb-srcentry, you will see an error like the following until you delete the
Unable to find expected entry ‘main/source/Sources’ in Release file (Wrong sources.list entry or malformed file)
You can install the Elasticsearch Debian package with:
sudo apt-get update && sudo apt-get install elasticsearch
Download .deb files from official website.
The Debian package for Elasticsearch v8.10.4 can be downloaded from the website and installed as follows:
shasum -a 512 -c elasticsearch-8.10.4-amd64.deb.sha512
sudo dpkg -i elasticsearch-8.10.4-amd64.deb
Thant’s all for install elasticsearch in Ubuntu.