From 5bdfd968ed9c9eb30a1d46f9427e6802d7164476 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 14 Oct 2009 15:16:29 +0200 Subject: [PATCH] [CONTRIB] halog: support searching by response time Also support inverting search criteria when specified uppercase --- contrib/halog/halog.c | 72 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 62 insertions(+), 10 deletions(-) diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index 32b4a7fb3..27e09617d 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -58,6 +58,10 @@ struct timer { #define FILT_ACC_COUNT 0x20 #define FILT_GRAPH_TIMERS 0x40 #define FILT_PERCENTILE 0x80 +#define FILT_TIME_RESP 0x100 + +#define FILT_INVERT_ERRORS 0x200 +#define FILT_INVERT_TIME_RESP 0x400 unsigned int filter = 0; unsigned int filter_invert = 0; @@ -69,7 +73,7 @@ void die(const char *msg) { fprintf(stderr, "%s" - "Usage: halog [-c] [-v] [-gt] [-pct] [-s ] [-e] [-ad ] [-ac ] < file.log\n" + "Usage: halog [-c] [-v] [-gt] [-pct] [-s ] [-e|-E] [-rt|-RT