Logfile Viewer

JSON Log Viewer – interactive structured log viewer

JSON Log Viewer is an interactive application for navigating and analysing logs whose entries are represented as JSON objects. Rather than printing each object as a dense block of structured text, the program presents logs in a compact list that can be explored from a keyboard-driven interface.

Individual records can be expanded to reveal their complete prettified JSON structure. Objects and arrays are displayed hierarchically, making nested data substantially easier to inspect than raw JSON. The viewer also captures lines which are not valid JSON, so mixed log streams do not simply lose entries that fail JSON parsing.

Filtering is integrated into the interface and lets users narrow a log stream to the information they need. Fields displayed in the compact log list can be customized, log levels are colorized and numeric timestamps can be transformed into more useful date and time representations.

JSON Log Viewer accepts regular files, multiple files selected at the same time and data streamed through standard input. That makes it suitable both for post-mortem examination of saved application logs and for following output from commands such as kubectl logs. Recent versions can open several matching log files together, which is useful when applications rotate logs into a series of separate files.

This is free and open source software.

Key Features

  • Interactive terminal user interface.
  • Displays structured JSON logs in a compact list.
  • Expands individual entries into a prettified JSON tree.
  • Displays nested objects and arrays hierarchically.
  • Captures non-JSON lines in mixed log streams.
  • Provides interactive filtering.
  • Supports customizable displayed fields.
  • Colorizes log severity levels.
  • Transforms numeric timestamps.
  • Opens multiple log files simultaneously.
  • Reads log data from standard input.
  • Works with continuous streams such as kubectl logs.
  • Provides keyboard-driven navigation and help.

Website: github.com/hedhyw/json-log-viewer
Support:
Developer: Maksym Kryvchun
License: MIT License

JSON Log Viewer in action

JSON Log Viewer is written in Go. Learn Go with our recommended free books and free tutorials.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted