From 08911ff896e0cf100c17cab18fee619d6fb33b31 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 13 Oct 2011 13:28:36 +0200 Subject: MINOR: halog: add support for matching queued requests -Q outputs all requests which went through at least one queue. -QS outputs all requests which went through a server queue. --- contrib/halog/halog.c | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index ad90510..df224b1 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -31,6 +31,7 @@ #define STATUS_FIELD 10 #define TERM_CODES_FIELD 14 #define CONN_FIELD 15 +#define QUEUE_LEN_FIELD 16 #define METH_FIELD 17 #define URL_FIELD 18 #define MAXLINE 16384 @@ -102,6 +103,8 @@ struct url_stat { #define FILT_HTTP_STATUS 0x1000000 #define FILT_INVERT_HTTP_STATUS 0x2000000 +#define FILT_QUEUE_ONLY 0x4000000 +#define FILT_QUEUE_SRV_ONLY 0x8000000 unsigned int filter = 0; unsigned int filter_invert = 0; @@ -126,7 +129,7 @@ void die(const char *msg) "%s" "Usage: halog [-q] [-c] [-v] {-gt|-pct|-st|-tc|-srv|-u|-uc|-ue|-ua|-ut|-uao|-uto}\n" " [-s ] [-e|-E] [-H] [-rt|-RT