Logreach
Reach into collected log dumps: logreach detects the type of each logfile (syslog, audit,
access or JSON) and prints the lines within a time window.
Important: Logreach is an early proof of concept and under development.
Installation
Requires Python >= 3.14.
From PyPI:
uv tool install logreach # or pip install logreach
logreach --help
From source:
git clone https://github.com/ait-testbed/logreach.git
cd logreach
uv run logreach --help
When running from source, prefix the commands below with uv run.
Usage
# all lines of one logfile, type detected automatically
uv run logreach /var/log/syslog
# only the lines between two timestamps
uv run logreach /var/log/syslog --begin '2026-09-01 14:00' --end '2026-09-01 15:00'
# every logfile below a directory
uv run logreach gather/logs --begin '2026-09-01 14:00' --end '2026-09-01 15:00'
# one line per log line, "timestamp path:lineno:line" (timestamp in UTC), e.g. to sort all files by time
uv run logreach gather/logs --begin '2026-09-01 14:00' --plain | sort
# only show the detected type of each file and the problems found
uv run logreach gather/logs --check
# also ask for the type of each file that is not detected, and save the answers in logtypes.json
uv run logreach gather/logs --check --interactive
Files where no type fits and lines without a timestamp are listed on stderr at the end of the
run (exit code 1). See logreach --help for all options and the
documentation for more examples.
Configuration files
Both are read from the current directory and created empty if missing:
-
ignore_list.txt: one regex per line; matching paths are skipped when reading a directory. -
logtypes.json: one JSON object per line that sets the type of a file instead of detecting it (--check --interactivewrites it for you):{"logfile_path": "gather/logs/zm/web_php.log", "type": "syslog", "datetimeregex": "\\A(.+?UTC)"} {"logfile_path": "gather/logs/suricata/suricata.log", "type": "syslog", "dayfirst": true}
Contributing
See CONTRIBUTING.md.
Security
see SECURITY.md.
License
Metadata
Release files for logreach 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| logreach-0.1.0.tar.gz | 32.4 kB | With provenance | Details for logreach-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logreach-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for logreach-0.1.0-py3-none-any.whl |
Total release size: 58.3 kB
Release files / logreach-0.1.0.tar.gz
| Download URL | logreach-0.1.0.tar.gz |
|---|---|
| Size | 32.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68d78f32fd570dd695310eb94e161918921d7079b69fe0e2d2dac8fb2d83eb61
|
|
BLAKE2b-256 checksum How to use checksums |
e67418c4bbc6a5ffb8fa956560140608574b44f4356692adff49d46b9f0dc71b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / logreach-0.1.0-py3-none-any.whl
| Download URL | logreach-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a602aacdb7de5fbc3d19b68800a89a6e78a47ce5495f0ffb04854b0979d9ae6c
|
|
BLAKE2b-256 checksum How to use checksums |
35ebddd1ac9fcc6808eec393a4bc81837a87ada06ec276e855b73cce4ee6c1a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for logreach 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for logreach-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.