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