-
Notifications
You must be signed in to change notification settings - Fork 188
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
remove old log files #46
Comments
Latter variant may work if the base image would be changed from |
Thanks! Will try to fork this and change line 12 in the dockerfile to https://github.com/mcuadros/ofelia/blob/master/Dockerfile#12 |
Maybe add a I would be willing to create a PR to add this feature if there is interest? I guess it's up to @mcuadros and he's vision for what scope for this project is. |
This seems to be more difficult solution and it adds some functions which aren't actually related to Ofelia as a |
@thatside that's a very good point, and yes, I agree would be good if we could use logrotate to manage this. |
Maybe the best solution would be to have 2 logging modes:
|
Any workarounds for this inside ofelia? My servers are getting full. |
Not for the moment, but I think the approach of adding job to clean up log files must work. [job-local "cleanup logs"]
schedule = @hourly
command = find /tmp/ -name "*.log" -type f -mtime +7 -delete -print |
Hi there,
I really like the logging feature. But i want to be able to remove log files older then say 7 days.
I mounted the ofelia logs volume:
logs/cron:/tmp/logs
Next i tried to just remove all files:
Unfortunately this fails with stdout
unable to find user root: no matching entries in passwd file
I also tried to run it on the host:
But it fails with :
failed: true, skipped: false, error: exec: "rm": executable file not found in $PATH
Any suggestions?
The text was updated successfully, but these errors were encountered: