Crates.io | qma |
lib.rs | qma |
version | 0.1.1 |
source | src |
created_at | 2022-05-29 13:24:36.233003 |
updated_at | 2022-06-05 10:33:10.579353 |
description | Simple command line tool for aggregate structured log. |
homepage | |
repository | |
max_upload_size | |
id | 596520 |
size | 35,860 |
Simple command line tool for aggeregate structured log.
Before runnning qma, prepare the yaml file which describe table definition config like below. See here to detail.
qma <CONFIG_PATH> <LOG_FILE_PATH>
SOME COMMAND | qma <CONFIG_PATH>
You need either cargo to install qma.
Using cargo
cargo install qma
Using homebrew (only for OSX)
// global setting
order_by: count
order_desc: asc //
// index = group key settings
index:
name: method // Column name on output table.
accessor: httpRequest.requestMethod // Json accessor
// fields: Columns list. See `Field setting details` section for details.
fields:
- name: latency // Column table on output table.
accessor: httpRequest.latency. // Json accessor for target data.
dtype: second // data type.
operation: average // Aggregation method.
- name: method
accessor: httpRequest.requestMethod
dtype: string
operation: count
name
: The field name to be displayed in the output table.
accessor
: