Installation Guide: Elastic Search Stack
Step-by-Step Installation of Elasticsearch Stack on Ubuntu:
1. Update and install dependencies:
sudo apt update && sudo apt upgrade -y
sudo apt install apt-transport-https openjdk-11-jdk wget curl gnupg -y
2. Add Elasticsearch GPG key and repository:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a
/etc/apt/sources.list.d/elastic-7.x.list
3. Install Elasticsearch:
sudo apt update
sudo apt install elasticsearch -y
4. Enable and start the Elasticsearch service:
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
5. Test Elasticsearch:
curl -X GET "localhost:9200/"
6. Install Kibana:
sudo apt install kibana -y
sudo systemctl enable kibana
sudo systemctl start kibana
7. Install Logstash:
sudo apt install logstash -y
8. Access Kibana via browser:
http://localhost:5601
9. Configure and secure stack as needed.