Crates.io | json-log-parse |
lib.rs | json-log-parse |
version | 0.3.0 |
source | src |
created_at | 2022-03-03 19:50:38.368591 |
updated_at | 2022-03-08 01:23:06.790839 |
description | Log tailer for deployments using JSON log format |
homepage | https://github.com/FigureTechnologies/json-log-parse |
repository | |
max_upload_size | |
id | 543054 |
size | 35,701 |
CLI tool for tailing logs from deployments using JSON log format.
This is implemented in Rust and published as binary crate on crates.io
First, install rust if you don't already have it:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Then, install the tool:
cargo install json-log-parse
You will also need stern
installed:
brew install stern
Example, using service-mortgage and leveraging stern for a standalone command:
json-log-parse stern -a service-mortgage -s 5m
Example, using stdin:
echo -n '{"timestamp": "1", "logger.thread_name": "thread1", "logger.name": "name1", "level": "INFO", "message": "log message 1"}' | json-log-parse stdin
To get help:
json-log-parse --help