jingjin / rpms / haproxy

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