dpedu2 / sless

less-like cli tool for reading large structured logs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sless

less-like reader for structured log files

Usage animation

A tool for reading Strucuted Logs aka text files containing newline-separated json objects. Each object is presented as a single line and can be expanded to show all attributes. Reading very large files is supported but large gzipped files do not work well.

Quick start

  • Install: python3 setup.py install
  • Run: sless my_file.json

Requirements

Python 3 and urwid module.

Having the rapidjson module - a faster version of the native json module - is recommended but not required. Alternatively, ujson will also be preferred over the built-in json module.

Customize

Display different key in unexpanded previews: -p or --preview-keys other,keys

Roadmap

  • Filtering
  • Exporting
  • Performance improvements

About

less-like cli tool for reading large structured logs


Languages

Language:Python 100.0%