]> err.no Git - varnish/commitdiff
Thoughts about filtering filtering
authorTollef Fog Heen <tfheen@err.no>
Sun, 16 Nov 2008 16:41:52 +0000 (17:41 +0100)
committerTollef Fog Heen <tfheen@err.no>
Sun, 16 Nov 2008 16:41:52 +0000 (17:41 +0100)
varnish-cache/lib/libvarnishapi/filter.txt [new file with mode: 0644]

diff --git a/varnish-cache/lib/libvarnishapi/filter.txt b/varnish-cache/lib/libvarnishapi/filter.txt
new file mode 100644 (file)
index 0000000..1847fc7
--- /dev/null
@@ -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)"