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] [--extra | --no-extra] [-s] [-n] [-max] [-f F] [-t T] 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
--extra, --no-extra show extra log lines (not matched by iso_regex) (default: False)
-s show summary (default: False)
-n don't show log (default: False)
-max show max durations (default: False)
-f F start from a date
-t T 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.9.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file logAnalyst-1.0.9.tar.gz
.
File metadata
- Download URL: logAnalyst-1.0.9.tar.gz
- Upload date:
- Size: 5.2 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 | 94e469d2f71fde973588e63bb5eb6b38108ecb3cd7fad4587a8bce1aaeb7fd34 |
|
MD5 | 8969997dc35fef8e1537c6e5dc547018 |
|
BLAKE2b-256 | 02f323f3efc6e8dcae8b0801a145621e00ebec38f49ca13a199f7504afa58424 |
File details
Details for the file logAnalyst-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: logAnalyst-1.0.9-py3-none-any.whl
- Upload date:
- Size: 5.7 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 | df86cf5dc66bafac8b2de4c86fca8e206584423569b6c29f25758d714caf9e21 |
|
MD5 | b9c55f457ab4db76334293af8d6a895a |
|
BLAKE2b-256 | daf4cba72c49fe522e2881995eec5356963b7b8f48efae31bef175086b2bae44 |