Apache Domlogs delay write
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 - [plain]http://domain.tld/file.txt[/plain] 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.
-
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 [font="courier new">/usr/local/cpanel/bin/splitlogs in the httpd.conf file Disabling Piped Apache Logs seems to resolve this. 0 -
Yea, it's piped logging - glad you found it. It in short just reduces the number of log files apache manages in order to utilize fewer resources. 0
Please sign in to leave a comment.
Comments
2 comments