Hi John,

Le 14/02/2017 à 19:57, John Dison a écrit :
Hello,

I am writing haproxy (1.6.9) logs via syslog:

global
log /dev/log    local0 debug alert


local0.*                                        /var/log/haproxy.log


I just noticed that last character of each line is space:

00000000  46 65 62 20 31 34 20 32  31 3a 33 39 3a 35 35 20  |Feb 14 21:39:55 |
00000010  68 6f 73 74 6e 61 6d 65  20 68 61 70 72 6f 78 79  |hostname haproxy|
00000020  5b 32 36 34 38 5d 3a 20  75 6e 69 78 3a 31 20 5b  |[2648]: unix:1 [|
00000030  31 34 2f 46 65 62 2f 32  30 31 37 3a 32 31 3a 33  |14/Feb/2017:21:3|
00000040  39 3a 35 35 2e 32 39 39  5d 20 54 45 53 54 2d 66  |9:55.299] TEST-f|
00000050  72 6f 6e 74 20 54 45 53  54 2d 62 61 63 6b 2f 68  |ront TEST-back/h|
00000060  69 73 74 31 20 30 2f 30  2f 30 2f 30 2f 30 20 32  |ist1 0/0/0/0/0 2|
00000070  30 30 20 31 33 39 20 2d  20 2d 20 2d 2d 2d 2d 20  |00 139 - - ---- |
00000080  30 2f 30 2f 30 2f 30 2f  30 20 30 2f 30 20 22 50  |0/0/0/0/0 0/0 "P|
00000090  4f 53 54 20 2f 74 65 73  74 2e 6a 73 6f 6e 2f 65  |OST /test.json/e|
000000a0  78 65 63 75 74 6f 72 3f  26 66 6c 61 67 73 3d 31  |xecutor?&flags=1|
000000b0  30 33 20 48 54 54 50 2f  31 2e 31 22 20 0a        |03 HTTP/1.1" .|


Log lines from other sources do not have this trailing space.

Am I missing something obvious?

It looks like you are defining a custom "log-format" in your configuration, can you provide it or check by yourself that it can't add this space ?

--
Cyril Bonté

Reply via email to