]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: halog: Add help text for -s switch in halog program
authorAleksandar Lazic <aleks@me2digital.com>
Tue, 5 Dec 2017 00:35:21 +0000 (01:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Dec 2017 18:27:47 +0000 (19:27 +0100)
It was not documented. May be backported to older releases.

contrib/halog/halog.c

index cb815d8cc2029b17ce438b2d13bb498c5ae9a74a..fc336b4d483c9fd4679e96cd28423120c4637be3 100644 (file)
@@ -180,6 +180,9 @@ void help()
               " -v                      invert the input filtering condition\n"
               " -q                      don't report errors/warnings\n"
               " -m <lines>              limit output to the first <lines> lines\n"
+               " -s <skip_n_fields>      skip n fields from the beginning of a line (default %d)\n"
+               "                         you can also use -n to start from earlier then field %d\n"
+               "\n"
               "Output filters - only one may be used at a time\n"
               " -c    only report the number of lines that would have been printed\n"
               " -pct  output connect and response times percentiles\n"
@@ -192,7 +195,8 @@ void help()
               "       -u : by URL, -uc : request count, -ue : error count\n"
               "       -ua : average response time, -ut : average total time\n"
               "       -uao, -uto: average times computed on valid ('OK') requests\n"
-              "       -uba, -ubt: average bytes returned, total bytes returned\n"
+              "       -uba, -ubt: average bytes returned, total bytes returned\n",
+               SOURCE_FIELD,SOURCE_FIELD
               );
        exit(0);
 }