<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HAProxy - Log host name]]></title><description><![CDATA[<p dir="auto">I have HAProxy 0.59_7 running and logging to syslog-ng 1.15.</p>
<p dir="auto">I checked the box under the frontend to get detailed logging. Here's a typical log entry:</p>
<p dir="auto">Aug 13 17:56:40 proxy haproxy[12810]: 54.36.150.50:35514 [13/Aug/2018:17:56:38.301] HTTP Focus_ipvANY/Focus 0/0/0/1770/1770 200 331 - - ---- 2/1/0/1/0 0/0 "GET /robots.txt HTTP/1.1"</p>
<p dir="auto">I have a number of different subdomains and seeing the host in the log would be helpful - not just the path.</p>
<p dir="auto">This link describes how to enable host names (among other things) in the logs: https://www.haproxy.com/blog/configure-syslog-ng-to-log-readable-http-url-from-haproxy/</p>
<p dir="auto">It comes down to adding this line to the frontend config:<br />
capture request header Host       len 32</p>
<p dir="auto">How can I do this with pfSense 2.4.3?</p>
]]></description><link>https://forum.netgate.com/topic/133764/haproxy-log-host-name</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 00:06:57 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/133764.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Aug 2018 23:58:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HAProxy - Log host name on Wed, 15 Aug 2018 13:33:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/piba" aria-label="Profile: piba">@<bdi>piba</bdi></a> said in <a href="/post/782949">HAProxy - Log host name</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aeleus" aria-label="Profile: aeleus">@<bdi>aeleus</bdi></a><br />
Use the 'Advanced pass thru' textbox to put that config setting into ?</p>
</blockquote>
<p dir="auto">Thanks, Piba!</p>
<p dir="auto">That works.</p>
]]></description><link>https://forum.netgate.com/post/783167</link><guid isPermaLink="true">https://forum.netgate.com/post/783167</guid><dc:creator><![CDATA[aeleus]]></dc:creator><pubDate>Wed, 15 Aug 2018 13:33:01 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy - Log host name on Tue, 14 Aug 2018 12:51:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aeleus" aria-label="Profile: aeleus">@<bdi>aeleus</bdi></a><br />
Use the 'Advanced pass thru' textbox to put that config setting into ?</p>
]]></description><link>https://forum.netgate.com/post/782949</link><guid isPermaLink="true">https://forum.netgate.com/post/782949</guid><dc:creator><![CDATA[PiBa]]></dc:creator><pubDate>Tue, 14 Aug 2018 12:51:15 GMT</pubDate></item></channel></rss>