Re: http-request set-map key as fixed string

2015-02-28 Thread Baptiste
On Sat, Feb 28, 2015 at 9:03 AM, Baptiste bed...@gmail.com wrote: On Sat, Feb 28, 2015 at 8:42 AM, Vivek Malik vivek.ma...@gmail.com wrote: Hi Baptise, Using set-map on the stats socket gives the expected result (except that I can't use functions there). set map motion.map monday 12345 did

Re: http-request set-map key as fixed string

2015-02-28 Thread Baptiste
On Sat, Feb 28, 2015 at 8:42 AM, Vivek Malik vivek.ma...@gmail.com wrote: Hi Baptise, Using set-map on the stats socket gives the expected result (except that I can't use functions there). set map motion.map monday 12345 did set the map with key monday and value as 12345. I found that

Re: http-request set-map key as fixed string

2015-02-27 Thread Vivek Malik
(Sorry for pressing send too early) Hi, I am trying to use http-request set-map with fixed strings which are defined in config file. Example lines http-request set-map(motion.map) monday %[date()] if acl_1 http-request set-map(motion.map) tuesday %[date()] if acl_2 Note that monday and tuesday

Re: http-request set-map key as fixed string

2015-02-27 Thread Vivek Malik
Hi Baptise, Using set-map on the stats socket gives the expected result (except that I can't use functions there). set map motion.map monday 12345 did set the map with key monday and value as 12345. I found that http-request set-map(motion.map) monday %[date] doesn't work, but http-request

http-request set-map key as fixed string

2015-02-27 Thread Vivek Malik
Hi, I am trying to use http-request set-map with fixed strings which are defined in config file. Example lines http-request set-map(motion.map) monday %[date()] if acl_1 http-request set-map(motion.map) tuesday %[date()] if acl_2 Note that monday and tuesday are literal string and not