diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-10-12 21:35:26 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-10-12 21:35:26 +0300 |
| commit | d54d560321a184cc515e0d07792305e95c2edf84 (patch) | |
| tree | 1241df01f0261439760a405916e5d4c999261255 | |
| parent | abbcabbf057d40d8f95870800fb6f8c84e1b6128 (diff) | |
0.2.1: Update docs
| -rw-r--r-- | README.md | 9 | ||||
| -rw-r--r-- | pyproject.toml | 2 |
2 files changed, 6 insertions, 5 deletions
@@ -38,10 +38,10 @@ pip install pylogsentinel chmod 600 /etc/pylogsentinel.conf ``` 2. Edit paths, rules, and actions to your needs. -3. Add a cron entry (run every minute): +3. First build state without executing actions (initial run with --skip-actions): ``` - * * * * * /usr/bin/env python3 -m pylogsentinel -c /etc/pylogsentinel.conf + python -m pylogsentinel -c /etc/pylogsentinel.conf --skip-actions ``` If you omit the `-c` option (or the specified file does not exist), pylogsentinel will look for a configuration file in this order: @@ -50,9 +50,10 @@ pip install pylogsentinel - `/etc/pylogsentinel.conf` - `/usr/local/etc/pylogsentinel.conf`. -4. First build state without executing actions (initial run with --skip-actions): +4. Add a cron entry (run every minute): + ``` - python -m pylogsentinel -c /etc/pylogsentinel.conf --skip-actions + * * * * * /usr/bin/env python3 -m pylogsentinel -c /etc/pylogsentinel.conf ``` ## Configuration File Reference diff --git a/pyproject.toml b/pyproject.toml index 5f501c7..5133c3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pylogsentinel" -version = "0.2.0" +version = "0.2.1" description = "Lightweight cron-friendly log monitoring utility with regex rules and per-rule shell actions" readme = "README.md" requires-python = ">=3.9" |
