Post B0DMStVAEHzgSgaWIa by wordsmith@writing.exchange
(DIR) More posts by wordsmith@writing.exchange
(DIR) Post #B0DMSnu72cNx6KDMLw by nantucketlit@mastodon.social
2025-11-13T19:26:25Z
0 likes, 0 repeats
I my expectation was that access logs in Apache would "break off" every day or so into smaller files. My logs have stopped doing that. All entries keep accumulating in the main access.log file, which is now dozens of megabytes in size. What causes this? Is there any way to get it back to one access log per day?
(DIR) Post #B0DMStVAEHzgSgaWIa by wordsmith@writing.exchange
2025-11-13T20:17:17Z
0 likes, 0 repeats
@nantucketlit assuming that `logrotate` is running on your system, you may need to ask it to manage Apache's log; `man logrotate`
(DIR) Post #B0DMSuTQcECRTameES by progo@boop.city
2025-11-13T20:55:50Z
0 likes, 0 repeats
@wordsmith @nantucketlit upstream, inside the Apache web server project, there's a program file called 'rotatelogs'. https://httpd.apache.org/docs/2.4/programs/rotatelogs.html'logrotate' is a tool built-in to lots of OSes, and probably standardized.One of these tools should be active on your Apache logs. If you used an off-the-shelf OS, and its 'apache2' package, consult the documentation and forums for that OS, not necessarily for the Apache project.