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