On 28. September 2016 16:53:00 MESZ, "Stephan Müller" <[email protected]> wrote: >Hello, > >I want to build a stick-table with keys derived from path. Something >like this: > >stick-table type string size 100k store gpc0_rate(60s) >tcp-request content track-sc0 function(path) > >where function( ) does some string manipulation, for example > >/foo/bar123/baz ---> 123 >/foo/bar456/baz ---> 456 > >Is that possible?
I found a working solution, you can do it (at least for this special case) as follows: tcp-request content track-sc0 path,regsub(/foo/bar,,g),regsub(/.*,,g) This extracts 123 and 456 as key for the stick-table. ~s

