Matomo's [log analytics](https://matomo.org/log-analytics/), but automatically watching specified directories for logs to ingest. Any detected logfiles are ingested and moved out of the way or deleted.
...
...
@@ -6,7 +6,7 @@ The script should be useful in situations where webserver logfiles are to be ing
## Requirements
The `logwatch.py` script requires Matomo's `import_logs.py` (branch `3-x.dev`) log analytics script to be available for import. Since that script only runs on Python 2.7, so does this. Obviously requirements of the `import_logs.py` script need to be satisfied, plus `inotify_simple` and `signal` modules need to be available.
The `matomnom.py` script requires Matomo's `import_logs.py` (branch `4-x.dev`) log analytics script to be available for import. Since that script only runs on Python 3.x, so does this. Obviously requirements of the `import_logs.py` script need to be satisfied, plus `inotify_simple` and `signal` modules need to be available.
## Operation
...
...
@@ -22,7 +22,7 @@ While ingestion is in progress new files are *not* being added to the batch. Onc
## Usage
Run `./logwatch.py --help` to get help. All `import_logs.py` options are supported, plus these additional ones:
Run `./matomnom.py --help` to get help. All `import_logs.py` options are supported, plus these additional ones:
-`--logfiles-glob` (default: `"*.log"`)
Only files matching this shell glob expression will be ingested. It's
...
...
@@ -77,13 +77,13 @@ Run `./logwatch.py --help` to get help. All `import_logs.py` options are support
## Docker usage
Run the image with log directories you want to watch volume-mounted. Specify the options and directories to watch directly as the command (`logwatch.py` is the entrypoint script, and default command is `--help`).
Run the image with log directories you want to watch volume-mounted. Specify the options and directories to watch directly as the command (`matomnom.py` is the entrypoint script, and default command is `--help`).