Elastic: Setting up a SOC Lab | TryHackMe
Set up a SOC lab with Elasticsearch, Kibana, and Fleet Server.
Elastic: Setting up a SOC Lab | TryHackMe
Set up a SOC lab with Elasticsearch, Kibana, and Fleet Server.

In a modern Security Operations Center (SOC), detection starts with data, but raw logs alone provide limited value without the ability to centralize, search, and visualize them at scale. The Elastic Stack enables security teams to ingest massive volumes of data and transform them into actionable insights. In this room, you’ll explore Elastic’s core architecture and get hands-on experience building a SOC lab to ingest, search, and investigate log data from multiple sources.
Learning Objectives
- Understand the core components of the Elastic Stack
- Install and configure an Elastic Stack deployment
- Ingest, parse, and search log data from multiple sources
- Build dashboards and visualizations to analyze log data
Prerequisites
Some familiarity with the Linux command line, SIEM concepts, and log analysis is recommended. However, all required commands and necessary information are provided in the walkthrough:
- Elastic Stack: The Basics for an overview of Elastic architecture, running queries, and creating visualizations
Machine Access
Click the Start Lab Machine button below. The machine will start in Split-Screen mode, and you will have access to all necessary files in the /home/ubuntu/Downloads directory.
We recommend switching to Full Screen mode for a more immersive experience. This provides a larger workspace, making it easier to manage the terminal and browser as you progress through the room. If your side menu is stuck in full screen, please enter and exit to fix the issue.
Answer the questions below
- Which component of the Elastic Stack represents the interface analysts use to visualize log data?
Kibana
- Which Elastic component would you use to manage the agents deployed across your client’s infrastructure?
Fleet Server
- Which port does the Kibana web interface run on by default?
5601
- Access the Kibana menu in the top left of the Kibana home page. What is the name of the first section that is listed?
Analytics
- What is the name of the default integration used to collect system metrics and log data from your host?
System
- In your VM terminal, create a new user with
useradd testuser. In Discover, enter the queryprocess.name: "useradd"to highlight theuseraddevents. What is theevent.datasetfield value of the associated logs?
system.auth
- Add
testuserto the sudoers group withgpasswd -a testuser sudo. Enter the queryprocess.name: "gpasswd"to highlight the log. What is the fullmessagefield value for the event created?
user testuser added by root to group sudo
- What is the
event.datasetfield value for the Apache access logs?
apache.access
- Head to
/secret.htmlon the TryHatMe site. Using Discover, investigate theuser_agent.originalfield from the recent requests. What is the hidden flag value?
THM{access_log_secrets!}
- Investigate the newly ingested VPN log data. Who is the most active user on the network?
s.summer
- What is the
source.ipof the user you identified in the previous question?
72.14.24.1
- Create a new Pie chart visualization using the search
event.action: "auth_fail". In Slice by, add theuser.namefield and set the Metric toCount. What percent ofauth_failevents does the userp.mallowaccount for? (e.g., 82.7%)
62.5%
- Using your dashboard, experiment with creating a visualization for the
vpn.server.regionfield. Which field value represents the least accessedvpn.server.region?
us-west-1
- Investigate the
vpn.client.ipfield. Whichvpn.client.ipwas only logged 26 times within the available data?
10.10.10.116
메타데이터
- post_id
- 47673d98f365
- slug
- elastic-setting-up-a-soc-lab-tryhackme-47673d98f365
- url
- https://medium.com/@elaris/elastic-setting-up-a-soc-lab-tryhackme-47673d98f365
- canonical_url
- https://medium.com/@elaris/elastic-setting-up-a-soc-lab-tryhackme-47673d98f365
- author_url
- https://medium.com/@elaris
- status
- ok
- fetched_at
- 2026-07-13 14:23:43