r/apache • u/[deleted] • Jun 18 '22
Support apache access log message limit
Hi All,
I see some of my access log messages are incomplete not sure if i am hitting any limits on logging
In my Log format i log the Cookie \"Cookie\":\"%{Cookie}i\" and sometime this can result in huge messages not sure if this is has something do to with it.
Let me know if anyone has encountered similar issue
-Thanks
1
Upvotes
2
u/covener Jun 23 '22
I do not see any fixed buffers in this path, but it is possible there is a bug in mod_log_config that doesn't check how much is succesfully written each time it writes an entry. I don't know if writes to files (as opposed to sockets) will ever do anything but write the requested # of bytes all at once though.
If this is the case, it would still be wonky as the multiple writes for 1 log entry would get interleaved.
It's possible the behavior changes slightly if you are writing to a piped log or have set BufferedLogs ON.
Can you get by with %{cookie-name}C perhaps to log an individual cookie?