Version is 2.0b0.
I have haproxy 1.5.12 capturing and logging the Host header, but I have not changed the httplog format at all. This is the added command to capture that header:
capture request header host len 32
So far I've only tried a few commands, such as ip_counter and top_ips. These commands do not report any IP addresses. Instead, they report the info captured from the Host header.
Here's a log line:
May 9 06:54:42 localhost haproxy[47441]: 119.75.230.230:28364 [09/May/2016:06:54:42.377] fe-services-ai-443~ be-services-ai-search-8443/fiesta 261/0/2/346/610 200 6397 - - ---- 60/1/0/0/0 0/0 {services.ai.REDACTED.com} "GET /services/search?set=no&extMeta=no&i=0-100&so=p&fq=sensitive_flag:(0)%20AND%20publish:(1)&s=(%22HISchronologyJ_002_1953%22)&user=REDACTED&password=REDACTED HTTP/1.1"
In the info above, three pieces of information have been replaced with REDACTED -- the Host header info, the username, and the password.
Version is 2.0b0.
I have haproxy 1.5.12 capturing and logging the Host header, but I have not changed the httplog format at all. This is the added command to capture that header:
capture request header host len 32
So far I've only tried a few commands, such as ip_counter and top_ips. These commands do not report any IP addresses. Instead, they report the info captured from the Host header.
Here's a log line:
May 9 06:54:42 localhost haproxy[47441]: 119.75.230.230:28364 [09/May/2016:06:54:42.377] fe-services-ai-443~ be-services-ai-search-8443/fiesta 261/0/2/346/610 200 6397 - - ---- 60/1/0/0/0 0/0 {services.ai.REDACTED.com} "GET /services/search?set=no&extMeta=no&i=0-100&so=p&fq=sensitive_flag:(0)%20AND%20publish:(1)&s=(%22HISchronologyJ_002_1953%22)&user=REDACTED&password=REDACTED HTTP/1.1"
In the info above, three pieces of information have been replaced with REDACTED -- the Host header info, the username, and the password.