Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Š Log Intelligence System

An AI-powered log analysis dashboard that helps engineers detect anomalies, group similar errors, and identify root causes from system logs.


๐Ÿš€ Live Demo

https://log-intelligence-app-l6mqdpuchvmpcptzjnfxqr.streamlit.app/


๐Ÿ“Œ Features

  • ๐Ÿ” Semantic Log Understanding Uses transformer embeddings to understand log meaning beyond keywords

  • ๐Ÿ“‚ Log Clustering Groups similar logs using KMeans for faster debugging

  • ๐Ÿšจ Anomaly Detection Detects unusual logs using Isolation Forest

  • ๐Ÿ“ˆ Time-based Trend Analysis Identifies spikes and patterns over time

  • ๐Ÿค– Root Cause Analysis Highlights dominant error clusters causing system issues


๐Ÿง  Tech Stack

  • Python
  • Streamlit
  • FAISS (vector similarity search)
  • Sentence Transformers
  • Scikit-learn (KMeans, Isolation Forest)
  • Pandas & NumPy

๐Ÿ—๏ธ How It Works

  1. Upload a log file (.txt)

  2. Logs are converted into embeddings using a transformer model

  3. System performs:

    • Clustering (KMeans)
    • Anomaly detection (Isolation Forest)
  4. Results are visualized in an interactive dashboard

  5. Root cause is inferred from dominant anomaly clusters


๐Ÿ“‚ Project Structure

log-intelligence-app/
โ”‚โ”€โ”€ app.py
โ”‚โ”€โ”€ requirements.txt
โ”‚โ”€โ”€ README.md

โš™๏ธ Run Locally

pip install -r requirements.txt
streamlit run app.py

๐ŸŒ Deployment

This app is deployed using Streamlit Community Cloud.

Steps:

  1. Push code to GitHub
  2. Connect repository to Streamlit Cloud
  3. Deploy using app.py as entry point

๐Ÿงช Sample Log Format

2024-01-01 10:00:00 INFO User login successful
2024-01-01 10:05:00 ERROR Database connection timeout
2024-01-01 10:10:00 WARNING High memory usage detected

๐Ÿ’ผ Resume Highlight

Built a production-style log intelligence system that clusters logs using KMeans on embeddings, detects anomalies via Isolation Forest, and performs root cause analysis with time-based trend visualization.


๐Ÿ”ฎ Future Improvements

  • Real-time log streaming
  • LLM-based debugging assistant
  • Advanced clustering (DBSCAN / HDBSCAN)
  • Docker deployment

๐Ÿ“œ License

This project is for educational and demonstration purposes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages