From: Tollef Fog Heen Date: Sun, 16 Nov 2008 16:41:52 +0000 (+0100) Subject: Thoughts about filtering X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73b5ca9ac40441bdae0ff10dcd22c772455b6e3e;p=varnish Thoughts about filtering --- diff --git a/varnish-cache/lib/libvarnishapi/filter.txt b/varnish-cache/lib/libvarnishapi/filter.txt new file mode 100644 index 00000000..1847fc70 --- /dev/null +++ b/varnish-cache/lib/libvarnishapi/filter.txt @@ -0,0 +1,30 @@ +# Preliminary spec for varnish filtering language + +## What is interesting to select on? + +### Operators + + =,<,>,<=,>= - Normal meaning for numbers + = - equality for strings + ~ - regex match (insensitive) for strings + +### Boolean logic (and, or, grouping?) + + No grouping + Explicit and/or + +### host (both client and backend, DNS and ip/network) + + "(host|backend|client) (operator) (IP/DNS)" + +### return code (please give me all 404s) + + "(status|rxstatus|txstatus) (operator) (number)" + +### arbitrary http headers (from both backend and client) + + "http.(headername) (operator) (string match)" + +### time to process request + + "processingtime (operator) (timeunit)"