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