This page presents programs and tips about log. Own your risk.
INDEX:
Many programs write several form in one log file. It cause confuse of readers. This program assists reader doing. You can get current version of source.
The program read a line from log flie, guesses token type, classified forms with sequence of token and memorize them. When reach to end, the program reports classified forms.
There are 3 report style.
Sample file like fstab:
|
'short' style:
|
'long' style:
|
'perl' style:
|
In monitoring or debugging, people want to view message of programs. However, message printing to terminal causes overhead under heavy load. Writing to file is more wrong because driving disk cause more overhead. Futhermore, file size often reachs several gigabytes. Another solution is required.
'stq' receives messages from stdin and stores last several thousands messages when termination itself. Overhead of running is little. and file writing ovehead occues only termination.
stq is not same as redirection to file, not 'tee' .
You can get snap-shot source of 'stq'.
|
'common format' is classic and most famous format of httpd.
It is used CERN httpd, NCSA httpd and Apache.
log reducer
log often be very long. This program reduces entris of log. In our trials, it reduced up to 85% (log files are compressed to 15%-24%). You will compress to 3%-5% using this program and compress program like gzip. You can get snapshot of source.
However, this program does not keep order of entities. If you want that, this program does not match such needs.
If you have comments and requests, please send e-mail to <k-chinen @ is.aist-nara.ac.jp> .