HomeLab Log Analyzer - Zero-Noise, AI-Powered Daily Summaries
A fully-local, fully-automated system that turns your chaotic Docker logs into clean, structured, actionable intelligence, every night, powered by your own local LLM.
README
HomeLab Log Analyzer - Zero-Noise, AI-Powered Daily Summaries
A fully-local, fully-automated system that turns your chaotic Docker logs into clean, structured, actionable data... every night... powered by your own local LLM.
No cloud.
No API fees.
No bullshit.
Just pure self-hosted magic
What This Project Does
This tool automatically:
- Collects logs from all (or selected) Docker containers
- Removes noise, health-checks, pings, spam, repeat lines
- Feeds the cleaned logs into your local LLM via LM Studio
- Generates a structured JSON summary of critical issues, warnings, successes, anomalies, and recommendations
- Sends you a daily email report via N8N
- Runs 100% offline, on your own hardware
Think of it as your homelabโs private Network God.
Original Reddit Post - https://www.reddit.com/r/homelab/comments/1p9f82c/this_is_a_good_use_of_an_llm/
Reddit Post of Release - https://www.reddit.com/r/homelab/comments/1pa8d94/i_built_the_full_local_llm_logsummarizer_system/
How It Works
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโ
โ N8N โโโโโโโถโ FastAPI App โโโโโโโถโ LM Studio โโโโโโโถโ Email โ
โ (Scheduler) โ โ (Log Analyzer) โ โ (Local LLM) โ โ Delivery โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโ
22:00 โ โ
Pull Logs Summarize in JSON
Filter Noise Return Clean Insights
N8N triggers โ Python FastAPI pulls & filters logs โ LM Studio analyzes โ N8N emails results.
Features at a Glance
- Docker log ingestion (auto or per-container)
- Noise-filtering engine (health checks, ping/pong, heartbeats, empty lines, etc.)
- Local LLM analysis (Qwen, Phi-3, Llama, anything LM Studio supports)
- Structured JSON output
- Daily summary email
- 100% private & offline
- Lightweight โ runs on a mini-PC or NUC
- Plug-and-play with N8N automation
Included in This Repository
log_analyzer.pyโ Complete FastAPI backendn8n_workflow.jsonโ Drop-in N8N daily summary workflowdocker-compose.ymlโ One-command deploymentDockerfileโ Containerized APIrequirements.txtโ All dependenciesquickstart.shโ Setup in under 60 seconds- Comprehensive documentation:
docs/setup.mddocs/models.mddocs/troubleshooting.mddocs/api.mddocs/architecture.md
Example Output (JSON)
{
"critical_issues": ["Container 'db' restarted unexpectedly"],
"warnings": ["High memory usage in 'plex'"],
"successes": ["Backup completed in 'nextcloud'"],
"recommendations": [
"Investigate container restarts",
"Review memory allocation"
],
"container_status": {
"db": "2 restarts detected",
"plex": "Memory warning"
},
"overall_health": "degraded"
}
Installation
git clone https://github.com/WhiskeyCoder/homelab-log-analyzer
cd homelab-log-analyzer
python log_analyzer.py
Why Local LLM?
Because itโs:
- Free (no API bills)
- Fast (sub-second inference on small models)
- Private (no logs leaving your machine)
- Customizable (your prompt, your workflow)
Models supported:
- Qwen
- Phi-3
- Llama
- Anything LM Studio can serve
๐จ Example Daily Email
- ๐ด Critical Issues
- โ ๏ธ Warnings
- โ Successes
- ๐ก Recommendations
- ๐ Per-container status
- ๐ข Overall homelab health
Beautiful HTML formatting included.
Contribute
PRs welcome.
New noise-filters, better prompts, new N8N flows โ bring them on.
License
MIT โ use it, break it, improve it, ship it.
If your homelab produces logs, this tool turns them into clarity.
Give your servers a voice.
