Ravindra BagaleCourses & study guides मराठी

Chapter 95: Logging with Loki, Elastic Stack and CloudWatch

DevOps

95.8 Elastic Stack — Elasticsearch, Logstash and Kibana

Story (fictional teaching scenario). At a fictional Kochi shop, Elena from Berlin asks whether Kibana stores the logs. Rohan separates collection, storage/search and the interface.

Elastic Stack — Elasticsearch, Logstash and Kibana
Elastic Stack — Elasticsearch, Logstash and Kibana

Why

ELK is a useful name, but it does not mean every deployment needs exactly three processes.

What

  • Elasticsearch stores and searches documents and supports analytics.
  • A document is one stored structured record.
  • Logstash is a processing pipeline that can transform/route events.
  • Kibana is an interface for exploring data and building visualizations.
  • ELK abbreviates Elasticsearch, Logstash and Kibana; Elastic Stack includes additional components. Collector and deployment choices vary.

How

  1. Choose how approved events enter the pipeline.

  2. Transform fields and protect data before indexing.

  3. Store in a planned schema.

  4. Use Kibana for authorized searches and dashboards, not as a substitute for access control.

Example 1: One event route

  1. Read the command or request.
Synthetic JSON -> chosen collector -> processing -> Elasticsearch -> Kibana
  1. Read the result.

Output (illustrative; NOT executed against Loki, Elastic or CloudWatch)

Kibana displays search results; it is not the original event producer.
  1. Line by line: The route is a conceptual design. Logstash is not mandatory in every architecture. No Elastic service, container, license entitlement or hosted account was created or checked. Evaluate product features/terms for the actual chosen distribution and deployment separately.

Ravindra Bagale's Tip

A dashboard and the searchable storage are different layers.

Did you understand? Let us try it once more.