Crates.io | logria |
lib.rs | logria |
version | 0.1.3 |
source | src |
created_at | 2022-12-25 02:21:26.401687 |
updated_at | 2023-02-12 20:04:57.552653 |
description | A powerful CLI tool that puts log analytics at your fingertips. |
homepage | |
repository | https://github.com/ReagentX/Logria |
max_upload_size | |
id | 745138 |
size | 308,212 |
A powerful CLI tool that puts log aggregation at your fingertips.
There are several options to install this app.
This binary is available on crates.io.
cargo install logria
is the best way to install the app for normal use.
There are a few ways to invoke Logria:
logria
logria -e 'tail -f log.txt'
tail -f log.txt
and skips setuplogria -h
will show the help page with all possible optionsFor more details, see Sample Usage Session.
Key | Command |
---|---|
: |
command mode |
/ |
regex search |
h |
if regex active, toggle highlighting of matches |
s |
swap reading stderr and stdout |
p |
activate parser |
a |
toggle aggregation mode when parser is active |
z |
deactivate parser |
↑ | scroll buffer up one line |
↓ | scroll buffer down one line |
→ | skip and stick to end of buffer |
← | skip and stick to beginning of buffer |
Here are some of the ways you can leverage Logria:
See session docs.
See parser docs.
This is a Rust implementation of my Python proof-of-concept.
Logria is best leveraged to watch live logs from multiple processes and filter them for events you want to see. My most common use case is watching logs from multiple Linode/EC2 instances via ssh
or multiple CloudWatch streams using awslogs
.
I also use it to analyze the logs from my Apache web servers that print logs in the common log format.
Logria is not a tool for detailed log analytics. lnav
or angle-grinder
will both do the job better.
O_NONBLOCK
.O_NONBLOCK
.HashMap
.