peacetara / fblog

Small command-line JSON Log viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fblog

https://img.shields.io/crates/v/fblog.svg https://travis-ci.org/brocode/fblog.svg?branch=master

A small tool to view json log files.

demo.png

Filter

To filter log messages it is possible to use lua

fblog -f 'level ~= "info"' # will print all message where the level is not info
fblog -f 'process == "play"' # will print all message where the process is play
fblog -f 'string.find(fu, "bow.*") ~= nil' # will print all messages where fu starts with bow
fblog -f 'process == "play"' # will print all message where the process is play
fblog -f 'process == "rust" and fu == "bower"'
fblog --no-implicit-filter-return-statement -f 'if 3 > 2 then return true else return false end'

Customize

fblog tries to detect the message, severity and timestamp of a log entry. This behavior can be customized. See --help for more information.

Installation

cargo install fblog

If you need a deb or rpm package have a look at fw releases

If you’re lucky enought to be an arch linux user: AUR

About

Small command-line JSON Log viewer

License:Do What The F*ck You Want To Public License


Languages

Language:Rust 96.2%Language:Shell 3.8%