Commit a86e92e1 authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: added progress output to test ncsa.sh

parent 13c82f99
......@@ -23,6 +23,7 @@ NCSA_LOG=$TMP/ncsa.log
DIFF_CMD="diff -U 0 $EVENT_LOG $NCSA_LOG"
HUNK_THRESH=1
echo "... default format"
$EVENT -r varnish.binlog | sed 's/-//g' > $EVENT_LOG
$NCSA -r varnish.binlog | sed 's/-//g' > $NCSA_LOG
......@@ -36,6 +37,7 @@ if [ "$HUNKS" -gt "$HUNK_THRESH" ]; then
exit 1
fi
echo "... -f format"
$EVENT -r varnish.binlog -f | sed 's/-//g' > $EVENT_LOG
$NCSA -r varnish.binlog -f | sed 's/-//g' > $NCSA_LOG
......@@ -51,6 +53,7 @@ fi
FORMAT="%b %H %h %{Host}i %{User-Agent}i %{Accept-Ranges}o %{Age}o %{Connection}o %{Content-Length}o %{Content-Type}o %{Date}o %{ETag}o %{Last-Modified}o %{Server}o %{Transfer-Encoding}o %{Vary}o %{Via}o %{X-Varnish}o %l %m %q %r %s %t %{%F-%T}t %U %u %{Varnish:time_firstbyte}x %{Varnish:hitmiss}x %{Varnish:handling}x %{VCL_Log:xid}x"
echo "... custom -F format"
$EVENT -r varnish.binlog -F $FORMAT | sed 's/-//g' > $EVENT_LOG
$NCSA -r varnish.binlog -F $FORMAT | sed 's/-//g' > $NCSA_LOG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment