less-like reader for structured log files
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.
- Install:
python3 setup.py install
- Run:
sless my_file.json
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.
Display different key in unexpanded previews: -p
or --preview-keys other,keys
- Filtering
- Exporting
- Performance improvements