Dai Okabayashi > App-LogStats-0.012 > stats

Download:
App-LogStats-0.012.tar.gz

Annotate this POD

View/Report Bugs
Source   Latest Release: App-LogStats-0.091

NAME ^

stats - helps you to calculate data from lines

SYNOPSIS ^

    $ stats [options] FILE ...

    or

    $ cat FILE | stats [option]

    options:
             --file          file path
        -f,  --fields        select only these fields to take stats
        -d,  --delimiter     specify the delimiter to split the log
             --more          calculate more results(NOTE: require more memory)
        -t,  --through       STDIN is shown
             --tsv           show the result as TSV
             --csv           show the result as CSV
        -di, --digit         number of the digit after decimal point(default:2)
             --no-comma      not add the comma
        -s,  --strict        treats only the strict numbers field
        -h,  --help          show this help
        -v,  --version       show the version

EXAMPLE ^

If you have the log file which include response time, and response time were logged the 7th element, for example you write the command like below

    $ stats -f7 access_log

then show the result like this

    .------------------.
    |         |      7 |
    +---------+--------+
    | count   |  3,096 |
    | sum     | 747.20 |
    +---------+--------+
    | average |   0.24 |
    +---------+--------+
    | max     |   5.01 |
    | min     |   0.01 |
    | range   |      5 |
    '---------+--------'

AUTHOR ^

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO ^

App::LogStats

LICENSE ^

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: