From: Willy Tarreau Date: Sun, 10 Jul 2011 15:27:40 +0000 (+0200) Subject: [MINOR] halog: add support for HTTP log matching (-H) X-Git-Tag: v1.5-dev8~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70c428f7c61906f82786c17d19b4e9f9959bb4f3;p=thirdparty%2Fhaproxy.git [MINOR] halog: add support for HTTP log matching (-H) Now it's possible to restrict analysis to HTTP-looking logs when passing -H. -H -v gives the opposite (most likely TCP logs). --- diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index a6635167c5..6478981047 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -101,6 +101,8 @@ struct url_stat { #define FILT_COUNT_URL_ANY (FILT_COUNT_URL_ONLY|FILT_COUNT_URL_COUNT|FILT_COUNT_URL_ERR| \ FILT_COUNT_URL_TTOT|FILT_COUNT_URL_TAVG|FILT_COUNT_URL_TTOTO|FILT_COUNT_URL_TAVGO) +#define FILT_HTTP_ONLY 0x200000 + unsigned int filter = 0; unsigned int filter_invert = 0; const char *line; @@ -112,7 +114,7 @@ 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] [-rt|-RT