Skip to main content

Command Palette

Search for a command to run...

πŸ” Elastic Stack (ELK): The Basics β€” SOC Analyst Guide

Updated
β€’3 min read
S

This blog serves as a beginner-friendly guide to understanding the world of cybersecurity. From defining what cybersecurity is to exploring its two major domainsβ€”offensive and defensive securityβ€”it breaks down various career paths such as Security Analyst, Engineer, Penetration Tester, and more. Whether you're just curious or planning a career, this blog gives you the insight and direction to get started in the cybersecurity field.

πŸ” Elastic Stack (ELK): The Basics β€” SOC Analyst Guide

πŸ“˜ Task 1: Introduction Elastic Stack (ELK) is widely used in modern Security Operations Centers (SOC) for log analysis and investigations. Although it is not a traditional SIEM, its powerful search and visualization capabilities make it function like one.

🎯 Learning Objectives Understand ELK components

Explore features of ELK

Learn searching & filtering

Investigate VPN logs

Create dashboards & visualizations

πŸ“˜ Task 2: Components of ELK Elastic Stack consists of four main components:

  1. Elasticsearch Stores and analyzes data

Works with JSON documents

Provides fast search using REST API

  1. Logstash Data processing pipeline

Collects, filters, and sends data

Structure:

Input β†’ Source of data

Filter β†’ Normalize data

Output β†’ Destination

  1. Beats Lightweight agents

Send data from endpoints

  1. Kibana Visualization tool

Used for dashboards and investigations

βœ… Answers: Logstash is used to visualize data β†’ nay

Elasticstash supports all formats except JSON β†’ nay

πŸ“˜ Task 3: Discover Tab (Log Analysis) The Discover Tab in Kibana is where SOC analysts spend most of their time.

πŸ” Features: Logs view

Fields panel

Search bar (KQL)

Time filter

Index pattern

βœ… Answers: Total hits β†’ 2861

Max connections IP β†’ 238.163.231.224

User with max traffic β†’ James

Emanda max source IP β†’ 107.14.1.247

Spike IP (Jan 11) β†’ 172.201.60.191

Connections excluding New York β†’ 48

πŸ“˜ Task 4: KQL (Kibana Query Language) KQL helps in searching logs efficiently.

πŸ”Ž Types of Search:

  1. Free Text Search Example: United States

  2. Field-Based Search Example: Source_ip : 238.163.231.224

  3. Operators AND

OR

NOT

βœ… Answers: Records (US + James OR Albert) β†’ 161

Johny Brown VPN after termination β†’ 1

πŸ“˜ Task 5: Visualization Kibana allows creating:

Tables

Pie charts

Bar charts

πŸ“Š Use Cases: Identify trends

Correlate fields

Monitor anomalies

πŸ“˜ Task 6: Failed Login Analysis Created a visualization for failed VPN attempts.

βœ… Answers: User with most failed attempts β†’ Simon

Wrong attempts in January β†’ 274

πŸ“˜ Task 7: Dashboard & Insights Dashboards provide:

Real-time monitoring

Centralized view

Easy anomaly detection

πŸ“˜ Task 8: Conclusion Elastic Stack (ELK) is a powerful tool for SOC analysts. It helps in:

Collecting logs

Searching data

Detecting threats

Visualizing insights

It may not be a traditional SIEM, but it is widely used as one in real-world security operations.

πŸŽ‰ Final Note This hands-on lab gave a real-world experience of:

Investigating VPN logs

Detecting anomalies

Creating dashboards