Skip to main content

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

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Logria Logo

Logria

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

tl;dr

  • Live filtering of stream or streams from other executed processes, replacing grep
  • Replace regex/filter without killing the process or losing the stream's history
  • Parse logs using user-defined rules, apply analytics methods on top
  • No dependencies

Installation

There are several options to install this app.

Normal Usage

pip install logria

Development

Installing as a standalone app

  • clone the repository
  • cd to the repository
  • (Optional) Create a virtual environment (3.6+)
    • python -m venv venv
    • source venv/bin/activate
  • (Optional) install requirements
    • These are only for some development tools and are not needed to run the app
    • pip install -r requirements.txt
  • Install self
    • deactivate if we want to install globally, otherwise leave your venv active
    • python setup.py develop or python setup.py install depending on whether you are actively developing this app

Installing as part of another app

  • clone the repository to your venv folder
    • Be sure your virtual environment is active
  • Install Logria
    • python setup.py install

Usage

There are a few main ways to invoke Logria:

  • Directly:
    • logria
  • With args:
    • logria -e 'tail -f log.txt'
  • As a pipe:

It may also be imported invoked programmatically as part of other software:

from logria.communication.input_handler import CommandInputStream
from logria.communication.shell_output import Logria


process_to_read = ['python', 'sample_streams/generate_test_logs.py']
stream = CommandInputStream(process_to_read)
app = Logria(stream)  # Capture output from `process_to_read`
app.start()

Key Commands

Key Command
: command mode
/ regex search
h if regex active, toggle highlighting of matches
i toggle insert mode (default off)
p activate parser
a toggle analytics 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 ways you can leverage Logria

Live stream of log data

logria

Interactive, live, editable grep

regex

Live log message parsing

parser

Live analytics/statistics tracking

analytics

User-defined saved sessions

See session docs.

User-defined saved log parsing methods

See patterns docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logria-0.5.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logria-0.5-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file logria-0.5.tar.gz.

File metadata

  • Download URL: logria-0.5.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for logria-0.5.tar.gz
Algorithm Hash digest
SHA256 4c05e1cd8f82b6569018c822fc1cfd3d1a0e6c4dc50a0ed29191d9d5ddad1ee5
MD5 3ec41f2a69069603705c048ba038bc4b
BLAKE2b-256 a1e2d989c30c081366652524d202fcfe886633b7a0f87883049a4f7c6f866728

See more details on using hashes here.

File details

Details for the file logria-0.5-py3-none-any.whl.

File metadata

  • Download URL: logria-0.5-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for logria-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 37aca6d71b6fccb7b4de30b8b280afe42f42a4ec44f232f4d31bf21a0b625c40
MD5 69ac41985bfa046d9f9c4d50689abc76
BLAKE2b-256 a47a0cae830da76557844f079b2834b5c17e72ff460dd6d176a38e4bff068fe7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page