Step 1: Set Up an Ubuntu Instance on AWS

  1. Launch an EC2 Instance:

Screenshot 2024-09-24 at 11.56.47 AM.png

Screenshot 2024-09-24 at 11.56.33 AM.png

Screenshot 2024-09-24 at 11.55.56 AM.png

Server successfully Launched

Screenshot 2024-09-24 at 12.00.07 PM.png

Step 2: Connect to Your EC2 Instance

Change the permissions of the ELK-Server-KeyPair.pem file

chmod 400 ELK-Server-KeyPair.pem

Screenshot 2024-09-24 at 12.14.28 PM.png

Step 3: Install Java (Required for ELK)

Elasticsearch and Logstash require Java to run. Run the following commands to install Java:

Step 4: Install Elasticsearch

sudo su
apt update
apt install default-jdk default-jre -y