Skip to content

clemcer/LoggiFly

Repository files navigation

LoggiFly

Documentation Report Bug Request Feature

LoggiFly - A Lightweight Tool that monitors Docker Container Logs for predefined keywords or regex patterns and sends Notifications.

Get instant alerts for security breaches, system errors, or custom patterns through your favorite notification channels. 🚀

Ideal For:

  • ✅ Catching security breaches (e.g., failed logins in Vaultwarden)
  • ✅ Debugging crashes with attached log context
  • ✅ Restarting containers on specific errors or stopping them completely to avoid restart loops
  • ✅ Monitoring custom app behaviors (e.g., when a user downloads an audiobook on your Audiobookshelf server)
Failed Vaultwarden Login

🚀 Features

  • 🔍 Plain Text, Regex & Multi-Line Log Detection: Catch simple keywords or complex patterns in log entries that span multiple lines.
  • 🚨 Ntfy/Apprise Alerts: Send notifications directly to Ntfy or via Apprise to 100+ different services (Slack, Discord, Telegram) or even to your own custom endpoint.
  • 🔁 Trigger Stop/Restart: A restart/stop of the monitored container can be triggered on specific critical keywords.
  • 📁 Log Attachments: Automatically include a log file to the notification for context.
  • ⚡ Automatic Reload on Config Change: The program automatically reloads the config.yaml when it detects that the file has been changed.
  • 📝 Configurable Alerts: Filter log lines for relevant information and use templates for your messages and notification titles.
  • 🌐 Remote Hosts: Connect to multiple remote Docker hosts.
  • 🐳 Multi-Platform Support: LoggiFly runs on Docker, Docker Swarm and Podman

🖼 Screenshots

collage of screenshots

🎯 Customize notifications and filter log lines for relevant information:

Custom Tepmplates Collage

Documentation

Support

If you find LoggiFly useful, drop a ⭐️ on the repo or buy me a coffee!

Buy Me A Coffee

Star History

Star History Chart

License

MIT