Analyse some log files
Project description
Log analyst
Features
- parse log files
- filters by date / timestamps
- correlates log lines (start and end of some processing)
- show total duration
- friendly colored output
- able to output short summaries
- "folding" lines
- keeps lines not matching an iso timestamp attached to the matching ones
- supports gzipped files
Usage
usage: loga [-h] [-x | --extra | --no-extra] [-s | --summary | --no-summary] [-n | --nolog | --no-nolog] [-m | --max | --no-max] [-b DATE] [-e DATE] TOML_FILE LOG_FILE
Parse some logs.
positional arguments:
TOML_FILE correlation rules to use
LOG_FILE (possibly gzipped) log file
options:
-h, --help show this help message and exit
-x, --extra, --no-extra
show extra log lines (not matched by iso_regex) (default: False)
-s, --summary, --no-summary
show summary (default: False)
-n, --nolog, --no-nolog
don't show log (default: False)
-m, --max, --no-max show max durations (default: False)
-b DATE, --begin DATE
start from a date
-e DATE, --end DATE stop to a date
For instance, with systemd logs:
journalctl -b 5 -o short-iso | loga -s correlators/sample.toml -
Sample correlation
Note: the "loganalyst" section is a configuration, which is optional, use only in case overriding values is needed.
Use the documented correlation file in correlators/sample.toml. You can also download the file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logAnalyst-1.0.11.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file logAnalyst-1.0.11.tar.gz
.
File metadata
- Download URL: logAnalyst-1.0.11.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.19.3-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 735b8e616ec308fe6a83bf22cfd3044c89b7e049597b3e1b718fac2db1209ccd |
|
MD5 | 388ed7d52165a68ff7e00217472f99fd |
|
BLAKE2b-256 | b69f84bba7c938dc0159acc12de2971c933eb452bdfc4c7fabce88b285415e80 |
File details
Details for the file logAnalyst-1.0.11-py3-none-any.whl
.
File metadata
- Download URL: logAnalyst-1.0.11-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.19.3-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53ec9026e96c4f2103901eddd89b7f2455b66e79fa028a80756f3f49fc6030dd |
|
MD5 | b205420e29f31927541dea97b5da4a6f |
|
BLAKE2b-256 | d127192f36728aee82dbda862465ec1a4a2ba7240da3a06d72f86f9dbeab7eda |