[squid-users] Squid logging to UDP logs multiple lines at the same time
Amos Jeffries
squid3 at treenet.co.nz
Fri May 4 14:44:20 UTC 2018
On 04/05/18 23:24, Matt Pson wrote:
>
>
> ----- Original Message -----
>> From: "Amos Jeffries"
>
>> On 04/05/18 20:44, Matt Pson wrote:
>
>>>
>>> This works quite well and logs are sent to the server which receives them and
>>> puts them in the log file as expected. But the logs are not sent line by line
>>> but instead multiple lines at the same time (the size is approx. a UDP packet
>>> of lines, ~1300 bytes) which makes the log file quite messed up.
>>
>> 1400 bytes or your network UDP MSS - whichever is smaller. Squid tries
>> to fit liens in there until one does not fit then sends off the batch.
>
> So in theory it could work if I set the buffer-size low enough, like 16 bytes, so the log line would never fit in the buffer and thus being sent asap?
>
In theory, probably. But that would require patching Squid. So it would
be better to add a patch that makes the buffer-size= option work for UDP
instead of having it hard-coded.
Amos
More information about the squid-users
mailing list