Email alerts when tail -1 of log file does not match regex
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logwatch-0.3.1.tar.gz
(5.9 kB
view details)
File details
Details for the file logwatch-0.3.1.tar.gz
.
File metadata
- Download URL: logwatch-0.3.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc0b76ae0126b91be0fac007940856660817f70e67e1f98658b9e41a5678137 |
|
MD5 | 7f75b29b97cc71a3f32bd447e0d70f06 |
|
BLAKE2b-256 | 9b361ccd521b6ba8edc47929e48e0ef2dc3e5491cb61b337a6ba5376791ae02f |