Source

git clone http://piggledy.org/projects/factorize/factorize.git/

Purpose

Factorize is a python script that factorizes lines from a log file to display them in a tree sorted by occurence. It allows to find types of entries that happens the most often and those that happens much less. This implementation is not finished (and won't be), it contains bugs, and is slow.

Screenshot

index/images/doc/factorize.png

Todo

  • Rewrite in C/C**.

Documentation

Options

./factorize.py
Usage: factorize.py [options] file_to_view

Options:
  -h, --help      show this help message and exit
  -s X, --skip=X  skip the first X fields of each line (default: 3)

Not much options.. The -s flag is used to set the number of "columns" to skip when factorizing lines (default to 3 to match syslog format by skipping the date).

Key mapping

<TAB> is used to switch between the tree view and the plain view.

In the tree view:

  • Arrows to move the cursor.
  • Space to fold/unfold a line.

In the plain view:

  • Arrows to move the cursor.