Logria Logo

Logria

A powerful CLI tool that puts log aggregation at your fingertips.

tl;dr

Installation

There are several options to install this app.

Normal Usage

cargo install logria (not supported in alpha stage)

Development

See Advanced Installation.

Usage

There are a few main ways to invoke Logria:

For more details, see Sample Usage Session.

Key Commands

| 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 |

Features

Here are some of the ways you can leverage Logria:

Live stream of log data

logria

Interactive, live, editable regex search

regex

Live log message parsing

parser

Live aggregation/statistics tracking

aggregation

User-defined saved sessions

See session docs.

User-defined saved log parsing methods

See parser docs.

Notes

This is a Rust implementation of my Python proof-of-concept.

When to use Logria

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.

When to avoid Logria

Logria is not a tool for detailed log analytics. lnav or angle-grinder will both do the job better.

Special Thanks