From: Mac Browning Date: Mon, 14 Mar 2016 18:46:01 +0000 (-0400) Subject: DOC: add encoding to json converter example X-Git-Tag: v1.7-dev3~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e83345df1b98b35144673c092c6e0eba6edc0746;p=thirdparty%2Fhaproxy.git DOC: add encoding to json converter example Without the encoding `log-format` will issue a warning like: $ haproxy -c -f /etc/haproxy/haproxy.cfg [WARNING] 073/180933 (179) : parsing [/etc/haproxy/haproxy.cfg:46] : 'log-format' : sample fetch failed with : missing args for conv method 'json' --- diff --git a/doc/configuration.txt b/doc/configuration.txt index dc1a3fce9b..c9cca4fd97 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11784,7 +11784,7 @@ json([]) Example: capture request header user-agent len 150 capture request header Host len 15 - log-format {"ip":"%[src]","user-agent":"%[capture.req.hdr(1),json]"} + log-format {"ip":"%[src]","user-agent":"%[capture.req.hdr(1),json("utf8s")]"} Input request from client 127.0.0.1: GET / HTTP/1.0