Skip to main content

Email alerts when tail -1 of log file does not match regex

Installation

From the project root directory:

$ python setup.py install

Usage

Watch file at /var/log/nginx/access.log using configured regex in ~/.watcher.yml:

$ logwatch /var/log/nginx/access.log

Watch file, sleeping for 60 seconds, with verbosity to print regex matches

$ logwatch /var/log/nginx/access.log -S 60 -v

Watch with special regex and print groups timestamp and message, ignoring empty file

$ logwatch /var/log/foo.log -r ‘[(?P<timestamp>d+)] (?P<message>.*)’ -e

Use –help/-h to view info on the arguments:

$ logwatch --help

Release Notes

0.1.0:

Alpha runs and works

0.0.1:

Project created

Metadata

Release files for logwatch 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logwatch 0.3.1
File Size Uploaded
logwatch-0.3.1.tar.gz 5.9 kB Details

Release files / logwatch-0.3.1.tar.gz

Download URL logwatch-0.3.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9dc0b76ae0126b91be0fac007940856660817f70e67e1f98658b9e41a5678137
BLAKE2b-256 checksum
How to use checksums
9b361ccd521b6ba8edc47929e48e0ef2dc3e5491cb61b337a6ba5376791ae02f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page