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

Automatically rotate logs #12280

Closed
tas50 opened this issue Nov 12, 2021 · 1 comment
Closed

Automatically rotate logs #12280

tas50 opened this issue Nov 12, 2021 · 1 comment
Labels
Epic Status: Untriaged An issue that has yet to be triaged.

Comments

@tas50
Copy link
Contributor

tas50 commented Nov 12, 2021

Right now Infra Client logs can grow over time and fill up drives if we don't have an external log rotation service setup to handle rotation. It would be very helpful to rotate logs automatically to avoid the need to setup services like logrotate.

The general idea would be a chef-config value to enable/disable log rotation which would default to true. Additional config values to control how the rotation behaves. Size-based rotation is a possibility, but other mechanisms like date-based rotation should be considered.

Acceptance Criteria

  • Out of the box logs are properly rotated so we don't have to worry about filling disks
  • This behavior can be disabled by users that want to manage logs on their own
  • Rotation behavior can be controlled via configs
  • These configs are exposed in the chef_client_config resource
  • This configs are documented in the client.rb docs on docs.chef.io
@tas50 tas50 added Status: Untriaged An issue that has yet to be triaged. Epic labels Nov 12, 2021
@tas50
Copy link
Contributor Author

tas50 commented Feb 19, 2022

Replaced with https://chefio.atlassian.net/browse/INFC-77

@tas50 tas50 closed this as completed Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant