Skip to content

About

An intelligent observability pipeline using Python and the EK Stack (Elasticsearch & Kibana). It leverages NLP (TF-IDF) and Unsupervised Machine Learning (Isolation Forest) to detect anomalies in system logs without the need for manual rule-setting.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

🚀 LogPulse-AI: Intelligent Log Anomaly Detection

LogPulse-AI is a modern observability pipeline that replaces traditional threshold-based alerting with Unsupervised Machine Learning and Natural Language Processing (NLP). By analyzing the semantic meaning and latency patterns of system logs, it detects "Unknown-Unknowns" that standard monitoring tools often miss.

🧠 Why this project?

Traditional monitoring (like standard ELK) requires manual rules (e.g., "Alert if error > 5"). LogPulse-AI doesn't need rules. It learns what "Normal" looks like and flags anything statistically different.

  • Semantic Analysis: Uses TF-IDF to understand if log messages (e.g., "Connection Timeout") are rare or common.
  • Latency Awareness: Detects performance degradation before it becomes a total outage.
  • EK Stack Architecture: A lightweight alternative to ELK that replaces the heavy Logstash layer with a high-performance Python Intelligence engine.

🛠️ Tech Stack

Component Technology Role
Source Flask (Python) Generates real-time web traffic logs.
Storage Elasticsearch 8.x High-speed distributed search engine.
Visualization Kibana 8.x Dashboarding and data exploration.
ML Model Scikit-learn Isolation Forest (Unsupervised Outlier Detection).
NLP Engine TF-IDF Vectorizer Numerical conversion of log text.
Infrastructure Docker Compose Containerized service management.

📂 Project Structure

.
├── compose.yaml          # Docker config for Elasticsearch & Kibana
├── app.py                # Flask application (The Data Source)
├── ai_detector.py        # Python Intelligence Layer (NLP + ML)
├── run_project.sh        # Master Orchestrator (Linux Automation Script)
├── requirements.txt      # Python library dependencies
├── SETUP.md              # Step-by-step Installation & UI Guide
├── .gitignore            # Excludes venv/ and app.log from Git
└── README.md             # High-level project overview & architecture

About

An intelligent observability pipeline using Python and the EK Stack (Elasticsearch & Kibana). It leverages NLP (TF-IDF) and Unsupervised Machine Learning (Isolation Forest) to detect anomalies in system logs without the need for manual rule-setting.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages