February 2011
Intermediate to advanced
332 pages
9h 3m
English
Let's say we want to parse our current log file; we can use Calamaris as follows:
$ cd /opt/squid/var/logs/ $ cat access.log | calamaris -a
By default, Calamaris generates stats in plain text format and prints them on a standard output. To output the stats to a text file, we can use Calamaris as follows:
$ cat access.log | calamaris -a --output-file access_stats.txt
The content of access_stats.txt should look similar to the following:
# Summary Calamaris statistics ------------------------------------------ ----------- -------- lines parsed: lines 50405872 invalid lines: lines 1 parse time: sec 2456 parse speed: lines/sec 20524 ------------------------------------------ ----------- -------- ...
Read now
Unlock full access