Re: Logging Question

2018-05-01 Thread Aleksandar Lazic
Hi.

Am 30.04.2018 um 19:05 schrieb UPPALAPATI, PRAVEEN:
> 
> Hi Willy/Oliver,
> 
> One small question:
> 
> When I capture the header it's returning .com in the log but when I 
> perform Get on .com:1000 it is not matching the following configuration.
> 
> frontend http-1000
> bind *:1000 
> option httplog
> capture request header Host len 20
> acl is_east hdr(host) -i .com 

Maybe this helps?

acl is_east hdr_beg(host) -i .com

> use_backend east_bk_1000_read if is_east
> 
> My question is how can I print o/p of hdr(host) & is_east  to log?
> 
> Appreciate your help.
> 
> Thanks,
> Praveen.

Regards
Aleks



Logging Question

2018-04-30 Thread UPPALAPATI, PRAVEEN

Hi Willy/Oliver,

One small question:

When I capture the header it's returning .com in the log but when I perform 
Get on .com:1000 it is not matching the following configuration.

frontend http-1000
bind *:1000 
option httplog
capture request header Host len 20
acl is_east hdr(host) -i .com 
use_backend east_bk_1000_read if is_east

My question is how can I print o/p of hdr(host) & is_east  to log?

Appreciate your help.

Thanks,
Praveen.