-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Not sure if I'm facing a HaProxy or a Syslog issue here. It's about
the log file format where all my log files like syslog or error.log
from apache are showing the host name as the second field where
HaProxy's log file shows the IP address 127.0.0.1.

Example of syslog:
Nov 28 14:17:01 txr1 CRON[31410]: (root) CMD (...)

Example of haproxy.log:
Nov 28 13:31:56 127.0.0.1 haproxy[28786]: ......

So the first example uses "txr1" where the second uses "127.0.0.1".

My haproxy config files is simply defined like this:

global
  daemon
  log txr1:514 local0 warning
  ....

defaults
  log global
  option httplog
  option dontlog-normal
  option dontlognull
  ....

What am I doing wrong? Can it be fixed or changed so that I get the
host name also in the haproxy log?

Reason being is that I forward all logs to a log aggregator and they
group the logs by host. If stuff is grouped by 127.0.0.1 it doesn't
make a lot of sense because that could beany host.


Thanks
Jürgen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQEcBAEBAgAGBQJSl0S+AAoJEGMwkysX8CInx+oH/j4uXwveuopVuDy6VAbXy+e4
KRW1DXTOft73yVbDqU9rw0eh9nxTq/1F02Cf77yJyrdesX+kjfDCFOisVWQ+D3Eq
hNHAOS5r5ntjSKdT1kzIRzXTo0mL4nrP2kmQfznZnj8dRhDD3HkjkJCdgmm6kdVK
EcCNmFosviDLpnbM53pjMf59yHGuXHHslQDbynLnxErcRPXRlqSn31GOsx0GHHo3
JT5xdRBhMTxqbztrFhhZC7CFg4HOgasPuGpqgB8j3tepD7+B6p01NFtjdUHnGE4N
y2gFvJ24dY+vcftcFa0uRZ09sWHMwoqm0mG2FpHuxxwaYZIhd1K0gm3D0AlBScA=
=SZoM
-----END PGP SIGNATURE-----

Reply via email to