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

Configure logrotate for API + portal logs during Ansible provisioning #569

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

matthew-li
Copy link
Collaborator

@matthew-li matthew-li commented Nov 9, 2023

Changes

  • Updated the Ansible playbook to configure logrotate to rotate the API and portal logs during provisioning.
    • Each log will be rotated weekly, with the last eight files kept. Rotated files, except the most recent one, are compressed.
    • Each rotated file has the date appended, along with the UNIX timestamp to avoid conflicts.

Notes

  • A separate script is needed to archive the rotated, compressed files before logrotate deletes them.

@matthew-li matthew-li merged commit 378023e into develop Nov 10, 2023
1 check passed
@matthew-li matthew-li deleted the logrotate_ansible branch September 27, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant