toki

module
v0.0.0-...-8a942f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: AGPL-3.0

README

toki

What is this project

This is just a simple CLI tool for filtering JSON logs that has a syntax similar to Loki.

How to use

$ toki [logfile]

Syntax

[col1,col2,col3] -> { key: "value" } |= "search query" ~last5m
 ^ the list of        ^ search by        ^ raw search   ^ time interval
   columns to           JSON values        query
   show                 in log

Example (filter nest.js error logs related to the database in the last 5 minutes):

[level,time,msg] -> { level: "error" } |= "database" ~last5m

Directories

Path Synopsis
src
cli command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL