
Elastic Stack, also known as ELK, comprises three open-source programs: Elasticsearch, Logstash and Kibana. The stack is optimized for searching, analyzing, and visualization of large volumes of log data. The main components of the Elastic Stack are:
This article describes how to install Elastic Stack on Ubuntu 20.04 server.
Update system packages.
Install required packages.
To run Elasticsearch, you require Java. Install Java.
Verify the installation.
Kibana dashboard uses Nginx as a reverse proxy. Install Nginx webserver.
Install required packages.
Import the Elasticsearch PGP signing key.
Add Elasticsearch APT repository.
Update the system.
Install Elasticsearch.
Edit Elasticsearch configuration file.
Uncomment the following lines.
Change value of network.host to localhost and add the following line in the Discovery section.
The final file should have the lines as follows:
Save and close the file.
Reload the daemon.
Start the Elasticsearch service.
Enable Elasticsearch service to start at system startup.
Verify that Elasticsearch is running and listening on port 9200.
Install Logstash.
Start the Logstash service.
Enable Logstash service to start at system startup.
Verify Logstash service status.
Install Kibana.
Edit the Kibana configuration file.
Uncomment and modify the following lines from:
To:
Save and close the file.
Start the Kibana service.
Enable Kibana service to start at system startup.
Allow traffic on port 5601.
Install Filebeat.
Edit the Filebeat configuration file.
Comment out the following lines:
Uncomment these lines in Logstash output section:
Save and exit the file.
Enable the Filebeat system module.
Load the index template.
Start the Filebeat service.
Enable Filebeat service to start at system startup.
Verify that Filebeat is shipping log files to Logstash for processing.
Open your web browser and access the Kibana web interface using the URL http://YourServerIP:5601. For example:
You have successfully installed Elastic Stack on your server. You can now access the main dashboard via the Kibana web interface.
For more information, please see:
0 Comments
Be the first to comment and share your perspective with the community.