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

combine "logrotate daily" with hourly execution #104

Open
dlucredativ opened this issue Feb 2, 2018 · 1 comment
Open

combine "logrotate daily" with hourly execution #104

dlucredativ opened this issue Feb 2, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@dlucredativ
Copy link

I want to achieve the following:

  • rotate at least every day
  • rotate if a certain maxsize is reached.

If we specify 'rotate_every day', the rule will not be included to the hourly cronjob.
If we specify 'rotate_every hour', the rule will be rotated every hour even if maxsize is not reached.

@juniorsysadmin juniorsysadmin added the enhancement New feature or request label Feb 3, 2018
@joeryan
Copy link

joeryan commented May 30, 2019

I'm also interested in this, but I'm not sure what would satisfy the enhancement request. For now as a workaround, I specified maxsize and rotate_every day in my logrotate::rule and created a symlink (cron.hourly/logrotate -> cron.daily/logrotate) to run logrotate and check for maxsize hourly. If anyone has a better workaround, I'd appreciate the insight.

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

3 participants