01Usage:
02ngxtop [options]
03ngxtop [options] (print|top|avg|sum) <var>
04ngxtop info
05
06Options:
07-l <file>, –access-log <file> access log file to parse.
08-f <format>, –log-format <format> log format as specify in log_format directive.
09–no-follow ngxtop default behavior is to ignore current lines in log
10and only watch for new lines as they are written to the access log.
11Use this flag to tell ngxtop to process the current content of the access log instead.
12-t <seconds>, –interval <seconds> report interval when running in follow mode [default: 2.0]
13-g <var>, –group-by <var> group by variable [default: request_path]
14-w <var>, –having <expr> having clause [default: 1]
15-o <var>, –order-by <var> order of output for default query [default: count]
16-n <number>, –limit <number> limit the number of records included in report for top command [default: 10]
17-a <exp> …, –a <exp> … add exp (must be aggregation exp: sum, avg, min, max, etc.) into output
18-v, –verbose more verbose output
19-d, –debug print every line and parsed record
20-h, –help print this help message.
21–version print version information.
22Advanced / experimental options:
23-c <file>, –config <file> allow ngxtop to parse nginx config file for log format and location.
24-i <filter-expression>, –filter <filter-expression> filter in, records satisfied given expression are processed.
25-p <filter-expression>, –pre-filter <filter-expression> in-filter expression to check in pre-parsing phase.