A reproducible hybrid stream-batch log analytics method using Apache Kafka, ELK stack, Spark and Kubernetes

Fecha de publicación: --
Fuente: PubMed "hive"
MethodsX. 2026 Nov 12;17:104255. doi: 10.1016/j.mex.2026.104255. eCollection 2026 Dec.ABSTRACTLarge-scale enterprise environments generate massive volumes of heterogeneous log data from web servers, applications, network devices, and cloud services, making timely monitoring and historical analysis increasingly challenging. Conventional batch-processing frameworks provide scalable offline analytics but are limited by high processing latency, whereas stream-processing systems enable real-time event analysis but lack efficient support for long-term historical analytics. This article presents a reproducible hybrid stream-batch log analytics method that integrates Apache Flume, Apache Kafka, Logstash, Elasticsearch, Kibana, ES-Hadoop, Apache Spark, Apache Hive, and Kubernetes within a cloud-native architecture to support both real-time cybersecurity monitoring and distributed batch analytics. The proposed method employs a modular workflow consisting of log collection, stream ingestion, preprocessing, indexing, real-time visualization, historical data transfer, distributed batch processing, and cloud orchestration. By preprocessing and indexing logs during stream ingestion, the method reduces the computational overhead associated with batch processing while preserving efficient historical analysis. The workflow was initially tested using publicly available TON-IoT and LogHub datasets to assess heterogeneous log ingestion and processing, and was subsequently evaluated using enterprise Apache web-server logs for SQL Injection (SQLi) and Distributed Denial-of-Service (DDoS) event analysis. Owing to its modular design and reliance on widely adopted open-source technologies, the proposed method can be readily deployed, reproduced, and adapted for scalable log analytics, cloud-native monitoring, and cybersecurity applications.PMID:43105544 | PMC:PMC13813995 | DOI:10.1016/j.mex.2026.104255