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

cron.log and mail.log - how long will the fill up? we need automate to clear or rotate 2 weeks or so? #3000

Closed
spirogg opened this issue Mar 8, 2021 · 2 comments

Comments

@spirogg
Copy link

spirogg commented Mar 8, 2021

Important

Please follow this template!


What's happened?

... hi I chalk the cron.log, I have every 5mins my cron running, and this is running now for 1 month almost 10,000 lines so far.

do we clear the cron.log file with anther cron job? or do we have to manually clear this log file?

would be nice if you set to clear cron.log and mail.log after 30days

  • or rotating 2 weeks ?
  • so every 2 weeks the older ones get deleted and the newer ones stay..

Steps to reproduce:

What's expected?

... some sort of automation to clear the cron.log and mail.log

ALSO set this to 0644

chmod 0777 is not good.
chmod 0644 is good and still writes..

for safer solution!

Browsers and Devices tested

(Example: Chrome on iPhone X, Safari on Macbook, Miscrosoft Edge on Windown 10, Firefox on Ubuntu 16.04, ...)

...

Server information

(Example: CentOS 7, php 7.1 apache)

...centOS 7 php7.4 apache and Nginx

phpFox version

(Example: phpFox 4.6.0)

... 4.8.3

Screenshots

...

@harrison05
Copy link
Contributor

Hi @spirogg

We understood this case, we will check and find a solution.
Maybe, an improvement on Log Handling to allow each log driver clear old logs.

Regards.

@harrison05
Copy link
Contributor

Hi @spirogg

We just only support manual delete a Log Channel when Admin access to AdminCP > Settings > Log Handling and view detail a specific log channel. You can see my screenshot.

Screen Shot 2021-04-12 at 14 51 45

We don't support cron job to automatically delete logs because we want Admin to know which logs are logged on their site and they don't be miss.

Regards.

@harrison05 harrison05 added this to the 4.8.4 milestone Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants