Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the error.log file role over to a new file at a certain size, and only keep N #24

Open
starstryder opened this issue Feb 17, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@starstryder
Copy link
Contributor

make this log file essentially work like standard errorfiles where you end up with errors.log errors.1.log etc, and none of them get too big

@starstryder starstryder added the enhancement New feature or request label Feb 17, 2020
@dpi209
Copy link
Collaborator

dpi209 commented Feb 17, 2020

This is usually left to some system tool (mostly logrotate). It might be better to write it to the standard SAPI error file instead of a custom one since that is usually handled by the os.

@starstryder
Copy link
Contributor Author

Can you recommend how to implement?

@eladavron
Copy link
Contributor

I recently had to do this as my log suddenly became several dozen GBs due to some tomfoolery.
The solution in my case was editing /etc/logrotate.d/apache2 and settings size 100M at the top.

@KeeperOfMaps
Copy link
Contributor

This should be something discussed in the setup documentation so the admin can make a decision appropriate to their needs, rather than us imposing a limit on them.

@eladavron
Copy link
Contributor

eladavron commented Aug 23, 2022

There's a good guide here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants