json-log-parse

Crates.iojson-log-parse
lib.rsjson-log-parse
version0.3.0
sourcesrc
created_at2022-03-03 19:50:38.368591
updated_at2022-03-08 01:23:06.790839
descriptionLog tailer for deployments using JSON log format
homepagehttps://github.com/FigureTechnologies/json-log-parse
repository
max_upload_size
id543054
size35,701
jeffypoo (jjones-figure)

documentation

README

json-log-parse

CLI tool for tailing logs from deployments using JSON log format.

Installing

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

Usage

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
Commit count: 0

cargo fmt