Crates.io | logs-narrator |
lib.rs | logs-narrator |
version | 0.4.0 |
source | src |
created_at | 2024-03-14 09:43:49.11225 |
updated_at | 2024-03-14 09:43:49.11225 |
description | Merge logs to tell a story |
homepage | |
repository | https://github.com/agourlay/logs-narrator |
max_upload_size | |
id | 1173162 |
size | 474,401 |
Merge log files according to the timestamps to display the logs in a chronological order.
Alternative to lnav where an additional host id can be extracted via a regex for logs correlation.
This tool has not been tested outside my personal use case and is absolutely NOT production ready!
Feel free to open an issue if you encounter any problem.
Options:
-p, --path <PATH>
Path to the log files
--id-detection-regex <ID_DETECTION_REGEX>
Regex to extract an identifier to color logs [default: "(?:newRaft, raft_id: )(\\d+)"]
--no-color
Whether to color the output
--date-format <DATE_FORMAT>
Date format to use [default: %Y-%m-%dT%H:%M:%S%.6f%Z]
-h, --help
Print help
-V, --version
Print version
Using the provided binaries in https://github.com/agourlay/logs-narrator/releases
Using Cargo via crates.io.
cargo install logs-narrator