Skip to content

tripplet/logfile-notifications

Repository files navigation

Logfile Notifications

Features

  • Supports multiple log files
  • Trigger lines in logfiles based on regex
  • Service can be controlled interactively through the Telegram bot
  • Disable notifications for certain time
  • Administrator users can change the config through the Telegram bot

Supported notification services

Install

  1. Requires python3

  2. Create and use virtual environment (optional): virtualenv venv; source venv/bin/activate

  3. Install requirements: pip install -r requirements.txt

  4. Copy sample config cp sample-config.yaml config.yaml

  5. Modify the config file to your needs

  6. Run

    • python notifications.py config.yaml Or with virtual environment
    • venv/bin/python notifications.py config.yaml

Using the docker image

  1. Pull the image from dockerhub

About

Send notifications based on logfile changes

Resources

Stars

Watchers

Forks

Packages

No packages published