-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Oh, that simple and I have no idea how I could have missed that. Thanks Thomas for your help. Works like a charm.
Yours Jürgen On 03.12.2013 17:15, Thomas Heil wrote: > Hi, > > On 03.12.2013 17:03, Jürgen Haas wrote: >> No, I want to have the hostname of the server which is running >> HaProxy in the log instead of 127.0.0.1 >> > According to > http://haproxy.1wt.eu/download/1.5/doc/configuration.txt > "log-send-hostname [<string>]" could be what you want. > > cheers thomas > > >> On 03.12.2013 15:27, Thomas Heil wrote: >>> Hi, >> >>> On 03.12.2013 11:36, Jürgen Haas wrote: >>>> Anyone who could help me with this one, please? >>>> >>> I think you are want to log the Host Header? If so please try >>> -- frontend section .. capture request header Host len 50 -- >> >>> cheers thomas >> >>>> On 28.11.2013 14:27, Jürgen Haas wrote: >>>>> 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 >>>> >>>> >>>> >>>> >> >>> -- Thomas Heil - ! note my new number ! Skype: phiber.sun >>> Email: >>> >> heil-bgnlbvq18kq8r51topun21kkb15w2jkc-xmd5yjdbdmrexy1tmh2...@public.gmane.org >> >> Tel: 0176 >>> / 44555622 -- >> >> >> >> > > -- Thomas Heil - ! note my new number ! Skype: phiber.sun Email: > [email protected] Tel: 0176 > / 44555622 -- > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQEcBAEBAgAGBQJSngu1AAoJEGMwkysX8CInLf0H/iMlCmYxpUQQsnlYbrZ9MMJv 9GYqsz8A03qysmG6JEduOBbV7q8uUkghkEmbkZsP23V4PAcdtwwZdra0y5SkxlW0 eHjGlqIAf7aZbsf/k9jo+VJTbwOVDlGiZZhJiph5bxO7Dtg7VLqe0be671TM75DO ncCiRKll2rXT7pVoXcrbn3g+O8l2VIEwHNRth+F+ZddY5nGBp4zloZN1MiwBXGh+ g0gBHzUMGGuRzeUU2bs8kXkpKHIX7jc13RkksksH7TkD8AP7jSsZqLcmo4akmrI1 GdpU4kofsJE8v7He+495PUXUKOOxrKhxCYbz3cX8CEr/r4GPw9lZHY5yEWFIcfo= =kHJe -----END PGP SIGNATURE-----

