Lab 13: Elasticsearch & Kibana — Log Indexing
Overview
Architecture
┌─────────────────────────────────────────────────────────────┐
│ Elasticsearch Cluster │
│ │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Index: logs-2024.01.01 │ │
│ │ ┌──────────────┐ ┌──────────────┐ ┌──────────┐ │ │
│ │ │ Primary │ │ Primary │ │ Primary │ │ │
│ │ │ Shard 0 │ │ Shard 1 │ │ Shard 2 │ │ │
│ │ └──────┬───────┘ └──────┬───────┘ └────┬─────┘ │ │
│ │ │ │ │ │ │
│ │ ┌──────▼───────┐ ┌──────▼───────┐ ┌────▼─────┐ │ │
│ │ │ Replica │ │ Replica │ │ Replica │ │ │
│ │ │ Shard 0 │ │ Shard 1 │ │ Shard 2 │ │ │
│ │ └──────────────┘ └──────────────┘ └──────────┘ │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Node 1 (master+data) Node 2 (data) Node 3 (data) │
│ │
│ Client → Elasticsearch REST API :9200 │
│ Kibana → Elasticsearch :9200 → Browser :5601 │
└─────────────────────────────────────────────────────────────┘Step 1: Add Elasticsearch Repository and Check Package
Step 2: Configure elasticsearch.yml
Step 3: _cat APIs for Cluster Inspection
Step 4: Index Mappings
Step 5: Query DSL
Step 6: Index Lifecycle Management (ILM)
Step 7: Kibana Configuration
Step 8: Capstone — Production Log Indexing Setup
Summary
Concept
Key Details
Last updated
