ELK-Stack Deployment on Kali Linux for Log Management!

Step 1: Install Java

As Elasticsearch core component of ELK Stack written in java so this software need java to perform its functionality.

sudo apt-get install default-jdk

Step 2: Install Elasticsearch

Add the Elasticsearch GPG key and repository.

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list'
sudo apt update

Step 3: Install Elasticsearch

Now we will install Elasticsearch after GPG key addition and then configure Elasticsearch to operate on nodes.

sudo apt-get update
sudo apt-get install elasticsearch
sudo nano /etc/elasticsearch/elasticsearch.yml
discovery.type: single-node
sudo systemctl start elasticsearch.service
sudo systemctl enable elasticsearch.service

Step 4: Install Kibana

sudo apt install kibana
sudo nano /etc/kibana/kibana.yml
sudo systemctl start kibana
sudo systemctl enable kibana
sudo ufw allow 5601/tcp

Step 5: Install Logstash

sudo apt install logstash
sudo systemctl start logstash
sudo systemctl enable logstash #for running on boot 
/etc/logstash/conf.d/

Conclusion:

The most popular use case for the ELK Stack is for log management and analysis. In addition to this, there are many more highly valuable reasons to use ELK for reporting, alerting and improving your observability.