logwatcher

command module
v0.0.0-...-3ed2204 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: GPL-3.0 Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

logwatcher

This program watches a file for changes and sends a notification (email, mailgun, discord, telegram and teams) when one of the provided strings matches.

It's basically a tail -f file | grep match that sends every hit per notification. This way you can watch a logfile for errors and get a notification to you if one occurs.

config and installation

To install the systemd service you can use the install_service.sh helper script or simply copy the logwatcher.service to the right place.

See config.json.exampe for an example config and adopt it to your needs.

For mailing, you can use Mailjet which gives you 200 free mails per day currently.

usage

logwatcher -config config.json

Use --help for all available command line options

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址