All Projects → gistia → json-log-viewer

gistia / json-log-viewer

Licence: other
Powerful terminal based viewer for JSON logs using ncurses.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to json-log-viewer

Console
OS X console application.
Stars: ✭ 298 (+74.27%)
Mutual labels:  log, viewer
Open Log Viewer
A multi-platform log viewer built with Electron and styled with Material Design
Stars: ✭ 125 (-26.9%)
Mutual labels:  log, viewer
Eylogviewer
A simple viewer to see your app's logs on your iDevice in realtime.
Stars: ✭ 16 (-90.64%)
Mutual labels:  log, viewer
Fblog
Small command-line JSON Log viewer
Stars: ✭ 137 (-19.88%)
Mutual labels:  log, viewer
Laravel Log Reader
A log reader and management tool for Laravel
Stars: ✭ 115 (-32.75%)
Mutual labels:  log, viewer
Logviewer
📃 Provides a log viewer for Laravel
Stars: ✭ 2,098 (+1126.9%)
Mutual labels:  log, viewer
inker
Measure & copy CSS from your designs of Sketch, Gravit Designer, Adobe XD, Vectr, etc. Pro version: https://github.com/inker8/
Stars: ✭ 56 (-67.25%)
Mutual labels:  viewer
phpunit-extensions
📦 Some cool extensions for PHPUnit
Stars: ✭ 28 (-83.63%)
Mutual labels:  log
logwatch
日志采集工具
Stars: ✭ 22 (-87.13%)
Mutual labels:  log
Viewer
Viewer is a configurable application template that enables you to display an ArcGIS web map using a variety of tools.
Stars: ✭ 56 (-67.25%)
Mutual labels:  viewer
ccViewer
CryptCloudViewer source codes
Stars: ✭ 66 (-61.4%)
Mutual labels:  viewer
gen-git-log
自动生成git commit记录用以统计个人项目周报,全组项目周报,版本差异记录等
Stars: ✭ 35 (-79.53%)
Mutual labels:  log
consono
The most correct, informative, appealing and configurable variable inspector for JavaScript
Stars: ✭ 17 (-90.06%)
Mutual labels:  log
StlVault
3D object viewer and organizer
Stars: ✭ 104 (-39.18%)
Mutual labels:  viewer
TailLog-Source
TailLog Source (TailLog 开源代码)
Stars: ✭ 73 (-57.31%)
Mutual labels:  log
Multiplatform-Log
Kotlin Multi Platform Logger, for android an ios : Logcat & print
Stars: ✭ 49 (-71.35%)
Mutual labels:  log
paStash
pastaʃ'ʃ = Spaghetti I/O Event Data Processing, Interpolation, Correlation and beyond 🍝
Stars: ✭ 89 (-47.95%)
Mutual labels:  log
Mimir
📱 A simple & efficient iOS logging framework for high usage apps
Stars: ✭ 13 (-92.4%)
Mutual labels:  log
gemini-viewer
WebGL BIM Viewer based on xeoKit-sdk, written with TypeScript.
Stars: ✭ 24 (-85.96%)
Mutual labels:  viewer
WELA
WELA (Windows Event Log Analyzer): The Swiss Army knife for Windows Event Logs! ゑ羅(ウェラ)
Stars: ✭ 442 (+158.48%)
Mutual labels:  log

json-log-viewer

npm version

Powerful terminal based viewer for JSON logs using ncurses.

screenshot

json-log-viewer is a feature intensive viewer and analyze tool for JSON logs created by libraries like https://github.com/winstonjs/winston.

Features:

  • completely operated by hotkeys
  • powerful command line arguments
  • sort by timestamp, level or message
  • filter by any field or metadata
  • search

Hotkeys:

  • arrows and page up/down to move
  • / to search
  • n to search again
  • s to sort
  • f to filter
  • l to filter by level
  • g to go to line
  • 0 to go to first line
  • $ to go to last line
  • q to quit

Install

npm install --global json-log-viewer

Usage

jv application.log.2017-01-01 --sort -timestamp

Configuration

The default expected log format include fields timestamp, level and message. If the log file you're trying to parse doesn't include those fields, you can create a config file on your HOME path called .json-log-viewer.

For example, if your log lines look like this:

{
  "message":
    "Matched route \"**_heartbeat_check\" (parameters: \"_controller\": \"**\\Controller\\**Controller::heartbeatCheckAction\", \"_route\": \"**_heartbeat_check\")",
  "context": [],
  "level": 200,
  "level_name": "INFO",
  "channel": "request",
  "datetime": {
    "date": "2017-12-06 09:23:42.253060",
    "timezone_type": 3,
    "timezone": "Europe/Berlin"
  },
  "extra": []
}

You can create a mapping configuration like this:

[transform]
level=level_name
timestamp=datetime.date
message=message
extra=$

This way the messages will properly be displayed. The $ has a special meaning: it tells the the old object should be included on the extra key on the resulting JSON. The result will look like this:

transform

Screenshots

Details view

screenshot

Filters

screenshot

Log level selection

screenshot

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].