From: Hervé COMMOWICK Date: Wed, 10 Aug 2011 15:42:41 +0000 (+0200) Subject: [MINOR] halog: add support for termination code matching (-tcn/-TCN) X-Git-Tag: v1.5-dev8~155 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=927cdddf9cc1967f9b91b75e8783eb148df34297;p=thirdparty%2Fhaproxy.git [MINOR] halog: add support for termination code matching (-tcn/-TCN) It is now possible to filter by termination code with -tcn , to be able to track one kind of errors, for example after counting it with -tc. Use -TCN gives you the opposite. --- diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index 120521a286..8c48d0ed5a 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -97,6 +97,8 @@ struct url_stat { FILT_COUNT_URL_TTOT|FILT_COUNT_URL_TAVG|FILT_COUNT_URL_TTOTO|FILT_COUNT_URL_TAVGO) #define FILT_HTTP_ONLY 0x200000 +#define FILT_TERM_CODE_NAME 0x400000 +#define FILT_INVERT_TERM_CODE_NAME 0x800000 unsigned int filter = 0; unsigned int filter_invert = 0; @@ -120,7 +122,8 @@ void die(const char *msg) fprintf(stderr, "%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