ELK

 1. What is ELK?

  • Definition: A powerful suite of open-source tools used to collect, search, analyze, and visualize data in real time.
  • Official Name: Today, it is officially called the Elastic Stack.
  • Core Purpose: Centralized monitoring, log management, security analytics, and search operations.

🏗️ 2. Core Architecture (The 4 Components)
🔹 E – Elasticsearch
  • Role: The Heart (Database & Engine)
  • What it does: Stores and indexes all incoming data.
  • Key Feature: Extremely fast search results because it uses inverted indexing.
  • Format: Stores data as structured JSON text documents.
🔹 L – Logstash
  • Role: The Data Processor (Pipeline)
  • What it does: Gathers data from various sources, cleans/filters it, and pushes it to Elasticsearch.
  • Pipeline Mechanism: Uses an Input → Filter → Output workflow.
🔹 K – Kibana
  • Role: The Face (User Interface)
  • What it does: Connects to Elasticsearch to build live charts, graphs, maps, and dashboards.
  • Common Use: Running search queries and monitoring system health visually.
🔹 B – Beats (The Add-on)
  • Role: The Messengers (Lightweight Shippers)
  • What it does: Low-resource software agents installed on individual servers to send logs straight to Logstash or Elasticsearch.
  • Examples: Filebeat (for text logs), Metricbeat (for CPU/RAM metrics).

⚙️ 3. Deployment Modes: Agent-Based vs. Agentless
Feature🏢 Agent-Based Setup🌐 Agentless Setup
How it worksInstall a tool (like Filebeat) directly on the target machine.Target machine sends data over the network via protocols.
Data SafetyHigh (Buffers data locally if the network goes down).Medium (Relies entirely on network stability).
Resource ImpactVery low resource usage on target machines.Higher network load on the central ELK server.
Best ForCloud instances, virtual machines, and custom apps.Routers, firewalls, switches, and locked devices.

📡 4. SNMP-Based Network Monitoring in ELK
  • Architecture: Always Agentless for network devices.
  • Mechanism 1 (Polling): ELK uses Metricbeat to actively request data from routers every few seconds.
  • Mechanism 2 (Traps): Network devices instantly push alert packets to Logstash on port 162 during a failure.
  • Critical Component (MIB Files): Dictionary files provided by vendors (e.g., Cisco). They translate numeric string codes (OIDs) into human-readable data (e.g., CPU_Usage).

🎯 5. Top Use Cases
  1. Log Management: Finding app errors and system bugs instantly across thousands of servers.
  2. Infrastructure Monitoring: Watching live system health metrics like CPU, RAM, and disk space.
  3. Application Performance (APM): Tracking website page loading times and API response delays.
  4. Security Operations (SIEM): Detecting network cyber attacks and tracking suspicious logins.
  5. Business Analytics: Monitoring real-time sales numbers, checkout counts, and user behavior.

Comments

Popular posts from this blog

How to enable the syslog monitoring-Zabbix

Zabbix installation: Distribution setup

SNMP OID: Full Insight