Skip to content
Projets

À propos

LogWhisperer is a self-hosted, AI-powered log summarization tool for Linux servers.

IA et apprentissage automatique

Comment ces chiffres sont mesurés

What you can do

  • 🤖 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

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

LogWhisperer 🔍

License: MIT Python 3.8+

AI-powered log analysis and monitoring tool that uses local LLMs to provide intelligent insights from your system logs.

✨ Features

  • 🤖 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
  • 🛡️ Production Ready - Rate limiting, deduplication, caching

🚀 Quick Start

# Clone and install
git clone https://github.com/binary-knight/logwhisperer.git
cd logwhisperer
pip install -r requirements.txt
python logwhisperer.py --help

📖 Basic Usage

Summarize Logs

# 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

Real-time Monitoring (PRO)

# Start monitoring with Discord alerts
logwhisperer monitor

# Monitor specific file
logwhisperer monitor --source file --file /var/log/app.log

⚙️ Configuration

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

🔨 Building from Source

Development

# Install dev dependencies
pip install -r requirements-dev.txt

# Run tests
pytest

# Build binary
./build.sh

📚 Documentation

🤝 Contributing

Contributions are welcome. Open an issue first for anything large.

# Setup dev environment
git clone https://github.com/binary-knight/logwhisperer.git
cd logwhisperer
pip install -r requirements-dev.txt
pre-commit install

📄 License

MIT License - see LICENSE for details.

🙏 Acknowledgments

🔗 Links


Made with ❤️ by the LogWhisperer Team

Explorer des projets similaires

Chargement…