Hi. attached a patch for the doc to make it clear that for clf are request header capture required.
From 897bd17130c7051300ca5bd5569ac47c86da2488 Mon Sep 17 00:00:00 2001 From: aleks <al-gitlab...@none.at> Date: Sat, 25 May 2019 12:11:26 +0200 Subject: [PATCH] DOC: Add informations for httplog clf mode To be able to log the Referer and User-Agent which is part of the clf line is it requierd that HAProxy capture this request header. --- doc/configuration.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/configuration.txt b/doc/configuration.txt index dcbe1eb..c72c48f 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -6563,6 +6563,13 @@ option httplog [ clf ] "option httplog" overrides any previous "log-format" directive. + When you use the 'clf' mode you will need to add at least two captures. + + Examples : + # log the clf headers + capture request header Referer len 128 + capture request header User-Agent len 128 + See also : section 8 about logging. -- 2.7.4