jingjin / rpms / haproxy

Forked from rpms/haproxy 4 years ago
Clone

Blame SOURCES/halog.1

7d3267
.TH HALOG "1" "July 2013" "halog" "User Commands"
7d3267
.SH NAME
7d3267
halog \- HAProxy log statistics reporter
7d3267
.SH SYNOPSIS
7d3267
.B halog
7d3267
[\fI-h|--help\fR]
7d3267
.br
7d3267
.B halog
7d3267
[\fIoptions\fR] 
7d3267
.SH DESCRIPTION
7d3267
.B halog
7d3267
reads HAProxy log data from stdin and extracts and displays lines matching
7d3267
user-specified criteria.
7d3267
.SH OPTIONS
7d3267
.SS Input filters \fR(several filters may be combined)
7d3267
.TP
7d3267
\fB\-H\fR
7d3267
Only match lines containing HTTP logs (ignore TCP)
7d3267
.TP
7d3267
\fB\-E\fR
7d3267
Only match lines without any error (no 5xx status)
7d3267
.TP
7d3267
\fB\-e\fR
7d3267
Only match lines with errors (status 5xx or negative)
7d3267
.TP
7d3267
\fB\-rt\fR|\fB\-RT\fR <time>
7d3267
Only match response times larger|smaller than <time>
7d3267
.TP
7d3267
\fB\-Q\fR|\fB\-QS\fR
7d3267
Only match queued requests (any queue|server queue)
7d3267
.TP
7d3267
\fB\-tcn\fR|\fB\-TCN\fR 
7d3267
Only match requests with/without termination code 
7d3267
.TP
7d3267
\fB\-hs\fR|\fB\-HS\fR <[min][:][max]>
7d3267
Only match requests with HTTP status codes within/not within min..max. Any of
7d3267
them may be omitted. Exact code is checked for if no ':' is specified.
7d3267
.SS
7d3267
Modifiers
7d3267
.TP
7d3267
\fB\-v\fR
7d3267
Invert the input filtering condition
7d3267
.TP
7d3267
\fB\-q\fR
7d3267
Don't report errors/warnings
7d3267
.TP
7d3267
\fB\-m\fR <lines>
7d3267
Limit output to the first <lines> lines
7d3267
.SS
7d3267
Output filters \fR\- only one may be used at a time
7d3267
.TP
7d3267
\fB\-c\fR
7d3267
Only report the number of lines that would have been printed
7d3267
.TP
7d3267
\fB\-pct\fR
7d3267
Output connect and response times percentiles
7d3267
.TP
7d3267
\fB\-st\fR
7d3267
Output number of requests per HTTP status code
7d3267
.TP
7d3267
\fB\-cc\fR
7d3267
Output number of requests per cookie code (2 chars)
7d3267
.TP
7d3267
\fB\-tc\fR
7d3267
Output number of requests per termination code (2 chars)
7d3267
.TP
7d3267
\fB\-srv\fR
7d3267
Output statistics per server (time, requests, errors)
7d3267
.TP
7d3267
\fB\-u\fR*
7d3267
Output statistics per URL (time, requests, errors)
7d3267
.br
7d3267
Additional characters indicate the output sorting key:
7d3267
.RS
7d3267
.TP
7d3267
\fB\-u\fR
7d3267
URL
7d3267
.TP
7d3267
\fB\-uc\fR
7d3267
Request count
7d3267
.TP
7d3267
\fB\-ue\fR
7d3267
Error count
7d3267
.TP
7d3267
\fB\-ua\fR
7d3267
Average response time
7d3267
.TP
7d3267
\fB\-ut\fR
7d3267
Average total time
7d3267
.TP
7d3267
\fB\-uao\fR, \fB\-uto\fR
7d3267
Average times computed on valid ('OK') requests
7d3267
.TP
7d3267
\fB\-uba\fR
7d3267
Average bytes returned
7d3267
.TP
7d3267
\fB\-ubt\fR
7d3267
Total bytes returned
7d3267
.RE
7d3267
.SH "SEE ALSO"
7d3267
.BR haproxy (1)
7d3267
.SH AUTHOR
7d3267
.PP
7d3267
\fBhalog\fR was written by Willy Tarreau <w@1wt.eu> and is part of \fBhaproxy\fR(1).
7d3267
.PP
7d3267
This  manual page was written by Apollon Oikonomopoulos <apoikos@gmail.com> for the Debian project (but may
7d3267
be used by others).
7d3267