Skip to content

Latest commit

Β 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Log Analyzer β€” AI-Powered Developer Debugging Tool

Log Analyzer React FastAPI PostgreSQL Docker

Stop googling your errors. Just paste them.

🌐 Live Demo πŸ› Report Bug πŸ’‘ Request Feature


πŸ“Έ Screenshots

Landing Page Landing Page

AI Analysis Result Analysis Result

Stack Trace Visualizer Stack Trace

Analytics Dashboard Analytics

Log Timeline View Timeline


🎯 The Problem

Every developer faces this daily:

  • You get a cryptic error or stack trace
  • You spend 30 minutes googling what it means
  • You're not even sure where to start fixing it

Log Analyzer solves this in seconds.


✨ Features

🧠 AI Analysis Engine

  • Plain English explanation β€” understands what your error actually means
  • Root cause detection β€” finds what actually triggered the issue
  • Step-by-step fix suggestions β€” numbered, actionable solutions
  • Fix code snippets β€” real code to solve the issue
  • Confidence score β€” how confident the AI is in the fix
  • Auto platform detection β€” Python, Node.js, Java, Docker, Kubernetes, and more

πŸ“₯ Multiple Input Methods

  • Paste raw logs directly with syntax highlighting
  • Upload .log, .txt, .json, .csv files
  • Drag & drop file upload
  • Screenshot upload (OCR support)

πŸ“Š Stack Trace Visualizer

  • Converts messy stack traces into interactive flowcharts
  • Shows file β†’ function β†’ line number chain
  • Highlights exactly where it broke in red
  • Built with React Flow

πŸ“… Log Timeline View

  • Extracts timestamps automatically from any log format
  • Visualizes events on a color-coded vertical timeline
  • Supports Python, Node.js, Java, and custom log formats

πŸ’¬ Chat With Your Logs

  • Ask follow-up questions after analysis
  • Context-aware β€” AI remembers your log
  • Suggested quick questions for faster debugging

πŸ“ History & Organization

  • All analyses saved to your account
  • Search by keyword, platform, or error type
  • Filter by severity and platform
  • Revisit any past analysis instantly

πŸ“ˆ Analytics Dashboard

  • Total logs analyzed
  • Severity breakdown (pie chart)
  • Most common error types (bar chart)
  • Activity over last 7 days (line graph)
  • Top platforms (horizontal bar chart)

πŸ” Pattern Detection

  • Detects recurring errors across your history
  • Warning banner when same error appears multiple times
  • Groups similar errors automatically

πŸ” Authentication

  • Google OAuth & GitHub OAuth
  • Secure session management
  • Personal data isolated per user

πŸ› οΈ Tech Stack

Frontend

Technology Purpose
React 19 + Vite UI framework
Tailwind CSS Styling
Shadcn/UI Component library
React Router v6 Navigation
React Flow Stack trace visualization
Recharts Analytics charts
Axios API calls
Clerk Authentication

Backend

Technology Purpose
FastAPI REST API framework
SQLAlchemy ORM
PostgreSQL (Supabase) Database
Groq API (LLaMA 3.3 70B) AI analysis engine
Pydantic Data validation
Uvicorn ASGI server

DevOps

Technology Purpose
Docker + Docker Compose Containerization
Vercel Frontend deployment
Railway Backend deployment
GitHub Version control

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • Python 3.11+
  • Docker (optional)
  • Git

Option 1 β€” Run with Docker (Recommended)

# Clone the repository
git clone https://github.com/anushkakedari/log-analyzer.git
cd log-analyzer

# Add environment variables
# Create backend/.env with your keys (see Environment Variables section)

# Run everything with one command
docker-compose up --build

Open http://localhost:5173 πŸŽ‰

Option 2 β€” Run Manually

Backend:

cd backend
python -m venv venv
venv\Scripts\activate      # Windows
source venv/bin/activate   # Mac/Linux
pip install -r requirements.txt
uvicorn main:app --reload

Frontend:

cd frontend
npm install
npm run dev

πŸ”‘ Environment Variables

Backend (backend/.env)

DATABASE_URL=your_supabase_postgresql_url
GROQ_API_KEY=your_groq_api_key

Frontend (frontend/.env)

VITE_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
VITE_API_URL=http://localhost:8000

πŸ“ Project Structure

Timeline

🌐 API Endpoints

Method Endpoint Description
POST /api/analyze Analyze a log with AI
POST /api/chat Chat about a log
GET /api/history/{user_id} Get user's history
DELETE /api/history/{log_id} Delete a history item
GET /api/analytics/{user_id} Get analytics data
GET /api/patterns/{user_id} Get recurring patterns

🀝 Why Log Analyzer vs Just Using ChatGPT?

Feature Log Analyzer ChatGPT/Gemini
File upload support βœ… ❌
Structured output βœ… Always ❌ Inconsistent
History saved βœ… ❌
Pattern detection βœ… ❌
Analytics dashboard βœ… ❌
Stack trace visualization βœ… ❌
Built for developers βœ… ❌ General purpose

πŸ‘©β€πŸ’» Author

Anushka Kedari

GitHub


If you found this project helpful, please ⭐ star the repository!

About

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages