๐ Day 7: Elastic Agent and Fleet Server Setup
Welcome to Day 7 of the 30-Day SOC Analyst Challenge! If youโve been following along, great jobโโโyouโre halfway through! If youโre newโฆ
30-Day SOC Analyst Challenge
๐ Day 7: Elastic Agent and Fleet Server Setup

Letโs get started!!!
Welcome to Day 7 of the 30-Day SOC Analyst Challenge! If youโve been following along, great job โ youโre halfway through! If youโre new here, I strongly recommend starting from Day 1 to get the most out of this challenge. Today, weโre focusing on setting up an Elastic Agent on a Windows server and configuring a Fleet Server for centralized management.
By the end of this blog, youโll have your Windows server enrolled in your Fleet, giving you centralized control over your agents. Letโs dive in! ๐
๐ ๏ธ Setting Up the Fleet Server
Step 1: Deploy a New Server
Weโll start by creating a new server that will function as our Fleet Server. Hereโs how you can do it:
- Click on Deploy at the top-right corner.
- Select Deploy New Server.

Choose Instance Type

Choose nearest location to you
- Choose Ubuntu 22.04 with the following specs:
- 1 CPU
- 4 GB RAM
- No auto backups
- No IPv6

Choose Ubuntu Image 22.04 LTS

Choose Above Specs
- Ensure the network is set to Virtual Private Cloud 2.0 with the correct IP address.

Select VPC 2.0

Select your already configured VPC
- Name your server as
jashank1999-Fleet-Serverand click Deploy.

Configure Server Hostname
While the server is being created, letโs move on to setting up the Fleet Server in the Elastic web GUI.
Step 2: Configuring the Fleet Server
- Go to the Elastic web GUI using your public IP address on port 5601.
- Navigate to the Fleet section under Management from the hamburger menu on the left.

Click on Fleet under Management
- Click Add Fleet Server and choose the Quick Start option.

Click on Add Fleet Server
- Enter the name of your choice.

-
Copy your Fleet Server public IP address from Vultr dashboard and paste it in the URL field, ensuring it starts with
[https://](https://.)<Fleet-Server-Public-IP>. -
Click Generate Fleet Server Policy.
Once the policy is generated, youโll see a command that needs to be run on your Fleet Server.


Command that you need to copy once above policy is created
๐ง Setting Up the Elastic Agent on Fleet Server
Step 3: SSH into the Fleet Server
- Copy the IP address of your Fleet Server.
- Open a new PowerShell instance and type:
ssh root@<your-fleet-server-ip>
- Enter the password when prompted.
Step 4: Update and Install Elastic Agent
- Run the following commands to update your repositories:
sudo apt-get update && sudo apt-get upgrade -y

Enter above command to update Ubuntu server
-
Copy the command from the Elastic web GUI and paste it into your Fleet Server terminal.
-
Confirm that you want to install the Elastic Agent by typing
Y.
๐ Troubleshooting and Firewall Configurations
Step 5: Troubleshooting Enrollment Issues If the enrollment fails, you might need to adjust your firewall settings:
- Allow Port 9200 on the ELK server:
sudo ufw allow 9200
- Check and Adjust Fleet Server Firewall:
sudo ufw allow 8220
sudo ufw allow 443
- Re-run the Elastic Agent install command and monitor for any errors.
Pro Tip: Ensure your Fleet Server can communicate with your ELK server, particularly on port 9200, which is used by Elasticsearch.
๐ Successful Enrollment and Monitoring
Step 6: Validate the Enrollment
After troubleshooting, you should see a confirmation in the Elastic GUI that your Fleet Server is connected. Now you can proceed to install the Elastic Agent on your Windows Server.

Successfull Enrollment of the Elastic Agent

Also verify on GUI
Step 7: Installing Elastic Agent on Windows
- Go to the Fleet section and click Add Agent.

Enter name of your choice and click on create policy
- Select Windows as the host type and copy the command provided.

Copy the commands by clicking on copy icon
- Paste it in a notepad file and make few changes in it to successfully enrol the agent.
Note: You need to make few changes in the URL to make it work:
url=https://<Fleet-Server-IP>:8220 <Change the port from 443 to 8220>
And add insecure at end of the line as we don't have a SSL certificate configured. Please refer below screenshot.

Make sure you make above change in the command
- Also go back to your Elastic Web GUI and go to Fleet section under Management. Click on Settings and make below change in the host URL. We need to change the port from 443 to 8220 so that it reflects what we did in the command. Click on save and apply settings.

Change port from 443 to 8220
- Open PowerShell on your Windows server as an administrator and paste the command now with the final changes.

Paste the command in PowerShell of your Windows Server
- You should be able to see that Elastic Agent is successfully enrolled.

Agent Successfully installed
๐ Wrapping Up
After completing these steps, your Windows server should be successfully enrolled in the Fleet, and you should start seeing logs in the Elastic GUI. You can now monitor your Windows Server activity, including critical events like failed logins.

Window Server logs are seen in Elastic GUI
Call to Action:
If youโre following along with this challenge, share your progress and thoughts in the comments below! Letโs build this SOC environment together!๐
Connect with Me on LinkedIn! ๐ค
If youโre enjoying this 30 DAY SOC Challenge or want to chat about cybersecurity, cloud computing, or anything tech-related, letโs connect on LinkedIn! I love meeting like-minded professionals and sharing knowledge.
๐ **Jashanpreet Singh on LinkedIn**
Looking forward to connecting with you! ๐
Credits and Special Thanks ๐
A huge shoutout to the MYDFIR YouTube Channel for creating this incredible 30 DAY SOC Challenge and providing top-notch free cybersecurity content for the community! ๐
If youโre passionate about cybersecurity or looking to dive into this field, I highly recommend checking out his channel and website. His content is a goldmine for both beginners and seasoned professionals.
๐ MYDFIR YouTube Channel ๐ MYDFIR Website
Thank you, MYDFIR, for your dedication to making cybersecurity knowledge accessible to everyone! ๐
๋ฉํ๋ฐ์ดํฐ
- post_id
- 7d1dc9440b08
- slug
- day-7-elastic-agent-and-fleet-server-setup-7d1dc9440b08
- url
- https://medium.com/@jashankhaira52/day-7-elastic-agent-and-fleet-server-setup-7d1dc9440b08
- canonical_url
- https://medium.com/@jashankhaira52/day-7-elastic-agent-and-fleet-server-setup-7d1dc9440b08
- author_url
- https://medium.com/@jashankhaira52
- status
- ok
- fetched_at
- 2026-07-13 06:23:13