Skip to content

kadak25/log-triage-service

Repository files navigation

🚨 AI Log Reader / Incident Triage Assistant

A production-oriented log analysis and incident triage tool designed for Application Support, Production Support, and DevOps workflows.

Paste logs or upload log files to get severity, root cause hypothesis, next steps, grep queries, and a ready-to-use ticket summary.

✨ Features 🔍 Log Analysis

Paste raw log text or upload .log / .txt files

Automatic detection of:

NullPointerException

SQL and database connectivity issues

Network and socket timeouts

Error grouping and signature counting

🧠 AI-Assisted Incident Triage

Hugging Face LLM integration

AI-generated incident summary, likely root cause, and next steps

Safe fallback to rule-based analysis if AI is unavailable

🧾 Ticket Generation

Auto-generated incident title

Jira / ServiceNow ready ticket body

Context checklist:

Timestamp range

Correlation / Request ID

Environment and deployment version

🛠 Ops-Friendly Output

Suggested grep commands

Copy-to-clipboard outputs

Severity badge (LOW / MEDIUM / HIGH)

AI telemetry (provider, latency, fallback)

🧱 Architecture Backend

Java 17

Spring Boot

Rule-based analyzer (regex and heuristics)

Hugging Face AI client

File upload and validation

Size limits and error handling

Frontend

React

Dark UI inspired by real support dashboards

Textarea and file upload

Result cards for analysis output

🔌 API Endpoints

Analyze pasted logs

POST /api/logs/analyze Content-Type: application/json

{
  "logContent": "..."
}

Analyze uploaded file
POST /api/logs/analyze/file
Content-Type: multipart/form-data

file=@app.log

Accepted file types: .log, .txt Server-side size limits apply.

🧪 Example Detected Issues

NullPointerException

SQLTransientConnectionException

SocketTimeoutException

Connection pool exhaustion

Unhandled global exceptions

🧠 Why This Project?

This project mirrors real production support workflows:

Logs arrive → triage → summarize → open a ticket

It focuses on system thinking and real-world incident response rather than toy demos.

🚀 Roadmap

Rate limiting per endpoint

Log fixtures dataset (20+ real-world examples)

Docker and CI pipeline

Global exception response standardization

📸 Screenshots

See the /screenshots folder for UI and API examples.

db394b75-8ce9-4ad5-8844-d0f33d7bdc58 9230e554-72c3-4c3c-b557-c1b90d3c5cbd e59b03ab-9609-46c4-b71c-237a6ac53b6d 3fd41ab2-ee3f-4795-bb93-c32e9e4769e7

⚠️ Notes

Hugging Face token is read from environment variable HF_TOKEN

No secrets are committed to the repository

👤 Author

Mustafa Kadak Backend / Application Support / DevOps-oriented Engineer

About

AI-powered log analysis & incident triage tool for Application / Production Support. Paste logs or upload files → get severity, root cause, next steps, grep queries & ticket summary.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors