BLEK : beats, logstash, elastic search, kibana

1. Abstract

  • The usual log management stack : more inclined towards a reactive analysis.
  • for a more real time (and predictive) analysis, checkout the Monitoring node
  • checkout Opensearch (& Dashboard), BLEK isn't open source anymore
    • has the premium features of BLEK and is open source (Apache 2.0 OSL)

2. Components:

  • Beats: Lightweight data shippers on edge devices forward data to Logstash
  • Logstash: ingests, transforms, and ships data from various sources into Elasticsearch
  • Elasticsearch: A distributed, RESTful search and analytics engine.
  • Kibana: A visualization and exploration tool

3. Data Flow (Unbuffered)


    [Web Server]:::B(Apache Logs)===O
                                     \
 [Load Balancer]:::::B(NGINX Logs)====O
                                       \
 [Application Server]::B(App Logs)======O-->[Logstash]-->[Elasticsearch]-->[Kibana]
                                       /
 [Database]::B(MySQL Logs)============O

B = Beats
  • Various sources (web server, app server, etc.) generate logs.
  • Beats installed on edge devices push these logs to logstash
  • Logstash collects, processes, and normalizes these diverse logs.
  • Processed logs are sent to Elasticsearch for indexing and storage.
  • Kibana queries and visualizes the indexed data from Elasticsearch.

4. Data Flow (Buffered)

    [Web Server]:::B(Apache Logs)===O
                                     \
 [Load Balancer]:::::B(NGINX Logs)====O
                                       \   |  RMQ   |
 [Application Server]::B(App Logs)======O--| Buffer |-->[Logstash]-->[Elasticsearch]-->[Kibana]
                                       /   | AKafka |
 [Database]::B(MySQL Logs)============O

B = Beats

6. diff w/ Monitoring

Feature Log Management (e.g., BLEK) Monitoring (e.g., Prometheus)
Focus Textual log data analysis Numerical time-series metrics
Data Structure Unstructured or semi-structured Structured, numerical
Data Collection Centralized from various sources Pull-based from instrumented systems
Use Cases Troubleshooting, security auditing Performance monitoring, alerting

7. Pre-emptive v Reactive Analysis

Tags::tool:data: