(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 are literal string and not log-format
variables. However, when I look into the map using

echo "show map motion.map" | socat stdio /var/run/socket-haproxy
0x13c1b90  1425089705

As you can see, the key is missing from the map. "monday" is getting
replaced by space " "

However, if I switch the format to
http-request set-map(motion.map) %[date()] monday if acl_1

such that the literal string "monday" is a value instead of key, the
set-map works fine.

echo "show map motion.map" | socat stdio /var/run/socket-haproxy
0x13c1b90 1425089710 monday


Please suggest if I have stumbled across a bug or I am missing
something in my configuration.

Regards,
Vivek

On Fri, Feb 27, 2015 at 8:20 PM, Vivek Malik <[email protected]> wrote:
> 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 log-format
> variables. However, when I look into the map using
>
> echo "show map motion.map" | socat stdio /var/run/socket-haproxy
> 0x13c1b90  1425089705
>
> As you can see, the key is missing from the map. "monday" is getting
> replaced by space " "
>
> However, if I switch the format to

Reply via email to