Skip to content
mitake edited this page Feb 5, 2013 · 8 revisions

json_log_viewer.py

what is this?

This script is written for correcting and viewing JSON logs produced by sheep and cluster drivers run on a single machine.

how to use: example

 $ cd tests
 $ sudo LOG_FORMAT=json DRIVER=local ./check -c 001 # specify log format with the environment variable $LOG_FORMAT. The option -c of check means collect log files of sheeps in logs/ directory after completion of tests.
 $ ../script/json_log_viewer.py logs/* # view the collected log files

key bindings

  • j: scroll down one line
  • k: scroll up one line
  • g: go to top
  • G: go to bottom
  • q: quit

screenshot

format of each line: +passed time since a first event generated: program name, TCP port number listening on, function name, line number, message screenshot

Clone this wiki locally