traffic_logstats¶
Synopsis¶
traffic_logstats [options]
Description¶
traffic_logstats is a log parsing utility, that is intended to produce metrics for total and per origin requests. Currently, this utility only supports parsing and processing the Squid binary log format, or a custom format that is compatible with the initial log fields of the Squid format.
Output can either be a human readable text file, or a JSON format. Parsing can be done incrementally, and traffic_logstats supports restarting where it left off previously (state is stored in an external file). This is useful when collecting metrics periodically into a stats processing system, and also supports the case where a log file is rotated.
The per-URL metrics (-u) requires that you specify a size of the LRU used for keeping the counters. This is to assure that traffic_logstats does not consume an exorbitant amount of memory.
Options¶
-
-fFILE,--log_fileFILE¶
-
-oLIST,--origin_listLIST¶
-
-OFILE,--origin_fileFILE¶
-
-MCOUNT,--max_originsCOUNT¶
-
-uCOUNT,--urlsCOUNT¶
-
-UCOUNT,--show_urlsCOUNT¶
-
-A,--as_object¶
-
-C,--concise¶
-
-i,--incremental¶
-
-SFILE,--statetagFILE¶
-
-t,--tail¶
-
-s,--summary¶
-
-j,--json¶
-
-c,--cgi¶
-
-m,--min_hits¶
-
-a,--max_age¶
-
-lCOUNT,--line_lenCOUNT¶
-
-h,--help¶ Print usage information and exit.
-
-V,--version¶ Print version information and exit.