forked from sheepdog/sheepdog
-
Notifications
You must be signed in to change notification settings - Fork 0
json_log_viewer.py
mitake edited this page Feb 5, 2013
·
8 revisions
This script is written for correcting and viewing JSON logs produced by sheep and cluster drivers run on a single machine.
$ 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
- j: scroll down one line
- k: scroll up one line
- g: go to top
- G: go to bottom
- q: quit
format of each line: +passed time since a first event generated: program name, TCP port number listening on, function name, line number, message
