Apache Domlogs delay write

sparek-3

Well-Known Member
Aug 10, 2002
1,951
195
343
cPanel Access Level
Root Administrator
Anybody ever seen an issue where writes to a VirtualHost's log is delayed? This is bugging the piss out of me.

Typically I can tail a domlog on the command line:

/etc/apache2/logs/domlogs/domain.tld

And then visit a URL - http://domain.tld/file.txt and the log file will instantly note this.

It's like Apache is buffering the logs in memory and only dumping them to the file after... something happens. If I flood the website with requests the log file eventually get written.

Like I said, this is bugging the piss out of me. And I have no idea what might be causing this.
 

sparek-3

Well-Known Member
Aug 10, 2002
1,951
195
343
cPanel Access Level
Root Administrator
As is almost always the case, when I post a question, I almost immediately solve it myself...

Apparently this has to do with Piped Log Configuration - or more specifically the references to /usr/local/cpanel/bin/splitlogs in the httpd.conf file

Disabling Piped Apache Logs seems to resolve this.