Skip to content

kavs2803/distributedloggingsystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Logging System

A scalable Distributed Logging System designed to collect, process, and store logs generated by multiple services in a centralized and searchable manner.
This project demonstrates how modern logging pipelines are built using Python, Kafka, Fluentd, and Elasticsearch.


📌 Problem Statement

In distributed systems, logs are generated across multiple services and machines.
Without a centralized logging mechanism, debugging, monitoring, and analysis become difficult and error-prone.

This project solves that problem by:

  • Collecting logs from multiple services
  • Streaming logs reliably using Kafka
  • Processing and forwarding logs via Fluentd
  • Storing logs in Elasticsearch for querying and analysis

🏗️ System Architecture

[ Python Services ]
        |
        v
   Log Files / Stdout
        |
        v
      Fluentd
        |
        v
       Kafka
        |
        v
   Log Consumers
        |
        v
   Elasticsearch

📁 Project Structure

distributedloggingsystem
├── README.md
├── services
│   ├── service1.py
│   ├── service2.py
│   └── service3.py
├── fluentd
│   ├── conf1.conf
│   ├── conf2.conf
│   └── conf3.conf
├── consumers
│   ├── consumer_first.py
│   └── consumer_final.py
├── storage
│   └── logs_indexing_storage.py
└── samples
    ├── inventory_service.log
    └── sample_initial_consumer_output.json

⚙️ Technologies Used

  • Python – Log generation and consumers
  • Apache Kafka – Message streaming
  • Fluentd – Log collection and forwarding
  • Elasticsearch – Log storage and search
  • Git – Version control

🚀 Features

  • Centralized logging for distributed services
  • Decoupled producer-consumer architecture
  • Fault-tolerant log streaming
  • Scalable and extensible design
  • Easily integrable with monitoring tools

This project helps understand:

  • Distributed system observability
  • Message-driven architectures
  • Real-world logging pipelines
  • Event streaming with Kafka
  • Log aggregation and indexing

👩‍💻 Author

Kavya Samhitha Computer Science Student | Backend & Systems Enthusiast

About

Scalable distributed logging system using Python, Kafka, Fluentd, and Elasticsearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages