AI-powered log analysis and monitoring tool that uses local LLMs to provide intelligent insights from your system logs.
- 🤖 AI-Powered Analysis - Uses Ollama for local LLM processing
- 📊 Multiple Log Sources - Supports journalctl, files, and Docker containers
- 🚨 Real-time Alerts - Discord notifications with @mentions
- 🔍 Smart Summarization - Intelligent pattern detection
- 🐳 Docker Ready - Full containerization support
- 🛡️ Production Ready - Rate limiting, deduplication, caching
# Download latest release
wget https://github.com/yourusername/logwhisperer/releases/latest/download/logwhisperer_linux_x86_64.zip
unzip logwhisperer_linux_x86_64.zip
sudo ./install.sh
# Test it
logwhisperer test
# Clone and run with docker-compose
git clone https://github.com/yourusername/logwhisperer.git
cd logwhisperer
docker-compose up -d
# Clone and install
git clone https://github.com/yourusername/logwhisperer.git
cd logwhisperer
pip install -r requirements.txt
python logwhisperer.py --help
# Recent system errors
logwhisperer summarize --source journalctl --priority err
# Specific log file
logwhisperer summarize --source file --logfile /var/log/nginx/error.log
# Docker container
logwhisperer summarize --source docker --container myapp
# Start monitoring with Discord alerts
logwhisperer monitor
# Monitor specific file
logwhisperer monitor --source file --file /var/log/app.log
Create /etc/logwhisperer/config.yaml
:
# LLM Settings
model: mistral
ollama_host: http://localhost:11434
# Monitoring
monitor:
webhook_url: https://discord.com/api/webhooks/YOUR_WEBHOOK
escalation_level: ERROR
# Discord @mentions (optional)
discord_mentions:
ERROR:
- "123456789012345678" # User ID
CRITICAL:
- "123456789012345678" # User ID
- "&456789012345678901" # Role ID
# Install dev dependencies
pip install -r requirements-dev.txt
# Run tests
pytest
# Build binary
./build.sh
# Tag a release
git tag v1.0.0
git push origin v1.0.0
# GitHub Actions handles the rest!
# Quick start
docker-compose up -d
# With external Ollama
docker-compose --profile external-ollama up -d
# Development mode
docker-compose --profile development up
Contributions are welcome! Please read our Contributing Guide.
# Setup dev environment
git clone https://github.com/yourusername/logwhisperer.git
cd logwhisperer
pip install -r requirements-dev.txt
pre-commit install
MIT License - see LICENSE for details.
- Ollama for local LLM support
- Nuitka for Python compilation
- All our contributors
Made with ❤️ by the LogWhisperer Team