Instructions for installing Elasticsearch on Ubuntu 20.04
What is Elasticsearch?
Elasticsearch is an open source, RESTful, distributed search and analytics engine, built on top of Apache Lucene. Since its release in 2010, Elasticsearch has rapidly become the most popular and widely used search engine for use cases related to log analysis, full-text search, security information, and more. confidentiality, business analysis and operational information.
When to use Elasticsearch?
We should use Elasticsearch in the following cases
Searching for pure text (textual search): regular text search.
Searching text and structured data (product search by name + properties): search for text and structured data.
Data aggregation, security analytics, analysis of business data: data aggregation, security analysis, business data analysis, large data storage.
Logging and log analytics: record the activity and analyze it.
Infrastructure indicators and container monitoring.
Geo Search: search by coordinates, analyze and visualize geospatial data.
JSON document storage: stores data in JSON format.
How does Elasticsearch work?
You can submit data as JSON documents to Elasticsearch using APIs or collection tools such as Logstash and Amazon Kinesis Firehose. Elasticsearch automatically caches the plaintext and adds a searchable reference to the text at the cluster’s index. You can then find and retrieve the text using the Elasticsearch API. You can also use Kibana, an open source visualization tool, with Elasticsearch to visualize data and build interactive dashboards.
And in this article, I will guide you to install Elasticsearch on Ubuntu 20.04 as follows.
Switch to the directory where you can download the temporary file.
cd / opt
Download Package Elasticsearch
In this article, I installed Elasticsearch version 7.14.1 which is also the latest version.
Move to line 56(:56) proceed to remove # this line and edit it to the content below, and remove the # line 74(:74)
#network.host: 192.168.0.1 to network.host: 0.0.0.0
At this point you can verify that Elasticsearch is running by sending an HTTP request to port 9200 on localhost using the command
curl -X GET "localhost:9200/"With just the above steps, you have completed installing Elasticsearch on Ubuntu 20.04. Hope the article is useful to you and wish you a successful installation.