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