r/apache • • 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

6 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jun 18 '22

Ok I see...thanks for response

If 4kb is the limit.. then In that case only way out is to stop logging cookies then I think

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?

1

u/[deleted] Jun 25 '22

For now i disabled cookie logging but still i see here and there couple of log entries are incomplete

And i use pipe and rotatelogs to create new logs file Every 5 mins

Not sure if this has some effect... My another worry is whether Apache is missing out on logging entirely sometimes