From 73b5ca9ac40441bdae0ff10dcd22c772455b6e3e Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 16 Nov 2008 17:41:52 +0100 Subject: [PATCH] Thoughts about filtering --- varnish-cache/lib/libvarnishapi/filter.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 varnish-cache/lib/libvarnishapi/filter.txt 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)" -- 2.39.5