<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://organizeseries.com/"
		>
<channel>
	<title>Comments on: How-To: Log HAProxy messages only once</title>
	<atom:link href="http://www.debuntu.org/how-to-log-haproxy-messages-only-once/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debuntu.org/how-to-log-haproxy-messages-only-once/</link>
	<description>Debian/Ubuntu Tips and Tricks</description>
	<lastBuildDate>Tue, 21 May 2013 04:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Shoutheasken1961</title>
		<link>http://www.debuntu.org/how-to-log-haproxy-messages-only-once/#comment-86769</link>
		<dc:creator>Shoutheasken1961</dc:creator>
		<pubDate>Tue, 12 Feb 2013 11:40:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=713#comment-86769</guid>
		<description><![CDATA[HAProxy&#039;s probably provides the finest level of information available for such a product, which is very important for troubleshooting complex environments.]]></description>
		<content:encoded><![CDATA[<p>HAProxy&#8217;s probably provides the finest level of information available for such a product, which is very important for troubleshooting complex environments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chantra</title>
		<link>http://www.debuntu.org/how-to-log-haproxy-messages-only-once/#comment-1727</link>
		<dc:creator>chantra</dc:creator>
		<pubDate>Tue, 11 Dec 2012 18:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=713#comment-1727</guid>
		<description><![CDATA[Hi,
I does not look like you have done the &lt;em&gt;rsyslog&lt;/em&gt; part, e.g creating &lt;em&gt;/etc/rsyslog.d/haproxy.conf &lt;/em&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I does not look like you have done the <em>rsyslog</em> part, e.g creating <em>/etc/rsyslog.d/haproxy.conf </em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.debuntu.org/how-to-log-haproxy-messages-only-once/#comment-1714</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 11 Dec 2012 16:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=713#comment-1714</guid>
		<description><![CDATA[Yes I did. Here is my haproxy.conf file:
&lt;blockquote&gt;
global
	maxconn     25000 # Total Max Connections. This is dependent on ulimit
	daemon
	nbproc      4 # Number of processing cores. Dual Dual-core Opteron is 4 cores for example.
	log /dev/log   local0 info
        log /dev/log   local0 notice
	# haproxy stats socket is available at /var/run/haproxy.stats
##	stats socket ./haproxy.stats level admin
defaults
	mode	    http
	clitimeout  60000
	srvtimeout  30000
	contimeout  4000
	timeout http-request 5s  # added to tackle slow http requests
	option      httpclose # Disable Keepalive
# Split static and dynamic traffic since these requests have different impacts on the servers
##  use_backend bk_web_static if { path_end .jpg .png .gif .css .js }
##  default_backend bk_web
listen	http_proxy *:80
        #bind *:80
	balance	roundrobin # Load Balancing algorithm
	option httpchk
	option forwardfor # This sets X-Forwarded-For
	use_backend bk_web_static if { path_end .jpg .png .gif .css .js }
        default_backend bk_web ##varnishBackend
# Dynamic part of the application
backend bk_web  ##backend varnishBackend
	## Define your servers to balance
	balance roundrobin ## change to URL hashing
	cookie MYSRV insert indirect nocache  ## check this NOTE TO SELF
	server server1 0.0.0.0:3002 weight 1 maxconn 512 check
	server server2 0.0.0.0:3003 weight 1 maxconn 512 check
	server server3 0.0.0.0:3004 weight 1 maxconn 512 check
# Static objects
backend bk_web_static
  balance roundrobin
	server server1 0.0.0.0:3002 weight 1 maxconn 1000 check
	server server2 0.0.0.0:3006 weight 1 maxconn 1000 check
	server server3 0.0.0.0:3007 weight 1 maxconn 1000 check
&lt;/blockquote&gt;
and here is my rsyslog.conf file if anything:
&lt;blockquote&gt;
#  /etc/rsyslog.conf	Configuration file for rsyslog.
#
#			For more information see
#			/usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
#  Default logging rules can be found in /etc/rsyslog.d/50-default.conf
#################
#### MODULES ####
#################
$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability
# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514
# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514
###########################
#### GLOBAL DIRECTIVES ####
###########################
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
# Filter duplicated messages
$RepeatedMsgReduction on
#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog
#
# Where to place spool files
#
$WorkDirectory /var/spool/rsyslog
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
# Save HA- Proxy logs
local0.*	/var/log/haproxy_0.log
local1.*	/var/log/haproxy_1.log
&lt;/blockquote&gt;
]]></description>
		<content:encoded><![CDATA[<p>Yes I did. Here is my haproxy.conf file:</p>
<blockquote><p>
global<br />
	maxconn     25000 # Total Max Connections. This is dependent on ulimit<br />
	daemon<br />
	nbproc      4 # Number of processing cores. Dual Dual-core Opteron is 4 cores for example.<br />
	log /dev/log   local0 info<br />
        log /dev/log   local0 notice<br />
	# haproxy stats socket is available at /var/run/haproxy.stats<br />
##	stats socket ./haproxy.stats level admin</p>
<p>defaults<br />
	mode	    http<br />
	clitimeout  60000<br />
	srvtimeout  30000<br />
	contimeout  4000<br />
	timeout http-request 5s  # added to tackle slow http requests<br />
	option      httpclose # Disable Keepalive</p>
<p># Split static and dynamic traffic since these requests have different impacts on the servers<br />
##  use_backend bk_web_static if { path_end .jpg .png .gif .css .js }</p>
<p>##  default_backend bk_web</p>
<p>listen	http_proxy *:80<br />
        #bind *:80<br />
	balance	roundrobin # Load Balancing algorithm<br />
	option httpchk<br />
	option forwardfor # This sets X-Forwarded-For<br />
	use_backend bk_web_static if { path_end .jpg .png .gif .css .js }<br />
        default_backend bk_web ##varnishBackend</p>
<p># Dynamic part of the application<br />
backend bk_web  ##backend varnishBackend<br />
	## Define your servers to balance<br />
	balance roundrobin ## change to URL hashing<br />
	cookie MYSRV insert indirect nocache  ## check this NOTE TO SELF<br />
	server server1 0.0.0.0:3002 weight 1 maxconn 512 check<br />
	server server2 0.0.0.0:3003 weight 1 maxconn 512 check<br />
	server server3 0.0.0.0:3004 weight 1 maxconn 512 check</p>
<p># Static objects<br />
backend bk_web_static<br />
  balance roundrobin<br />
	server server1 0.0.0.0:3002 weight 1 maxconn 1000 check<br />
	server server2 0.0.0.0:3006 weight 1 maxconn 1000 check<br />
	server server3 0.0.0.0:3007 weight 1 maxconn 1000 check
</p></blockquote>
<p>and here is my rsyslog.conf file if anything:</p>
<blockquote><p>
#  /etc/rsyslog.conf	Configuration file for rsyslog.<br />
#<br />
#			For more information see<br />
#			/usr/share/doc/rsyslog-doc/html/rsyslog_conf.html<br />
#<br />
#  Default logging rules can be found in /etc/rsyslog.d/50-default.conf</p>
<p>#################<br />
#### MODULES ####<br />
#################</p>
<p>$ModLoad imuxsock # provides support for local system logging<br />
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)<br />
#$ModLoad immark  # provides &#8211;MARK&#8211; message capability</p>
<p># provides UDP syslog reception<br />
#$ModLoad imudp<br />
#$UDPServerRun 514</p>
<p># provides TCP syslog reception<br />
#$ModLoad imtcp<br />
#$InputTCPServerRun 514</p>
<p>###########################<br />
#### GLOBAL DIRECTIVES ####<br />
###########################</p>
<p>#<br />
# Use traditional timestamp format.<br />
# To enable high precision timestamps, comment out the following line.<br />
#<br />
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat</p>
<p># Filter duplicated messages<br />
$RepeatedMsgReduction on</p>
<p>#<br />
# Set the default permissions for all log files.<br />
#<br />
$FileOwner syslog<br />
$FileGroup adm<br />
$FileCreateMode 0640<br />
$DirCreateMode 0755<br />
$Umask 0022<br />
$PrivDropToUser syslog<br />
$PrivDropToGroup syslog</p>
<p>#<br />
# Where to place spool files<br />
#<br />
$WorkDirectory /var/spool/rsyslog</p>
<p>#<br />
# Include all config files in /etc/rsyslog.d/<br />
#<br />
$IncludeConfig /etc/rsyslog.d/*.conf</p>
<p># Save HA- Proxy logs<br />
local0.*	/var/log/haproxy_0.log<br />
local1.*	/var/log/haproxy_1.log
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: chantra</title>
		<link>http://www.debuntu.org/how-to-log-haproxy-messages-only-once/#comment-1612</link>
		<dc:creator>chantra</dc:creator>
		<pubDate>Tue, 11 Dec 2012 07:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=713#comment-1612</guid>
		<description><![CDATA[Hi Jon,
Did you &lt;em&gt;mkdir /var/log/haproxy&lt;/em&gt; ?]]></description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>Did you <em>mkdir /var/log/haproxy</em> ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.debuntu.org/how-to-log-haproxy-messages-only-once/#comment-1426</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 10 Dec 2012 22:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=713#comment-1426</guid>
		<description><![CDATA[I tried the tutorial and did everything correctly, but my haproxy-info and haproxy-notice files are not there. Perhaps it is my haproxy.cfg file? I appreciate the help.]]></description>
		<content:encoded><![CDATA[<p>I tried the tutorial and did everything correctly, but my haproxy-info and haproxy-notice files are not there. Perhaps it is my haproxy.cfg file? I appreciate the help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>