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

MaxFiles parameter in accesslogging is not working when the system restarts. #30932

Open
ncpibm opened this issue Mar 5, 2025 · 0 comments · May be fixed by #30839
Open

MaxFiles parameter in accesslogging is not working when the system restarts. #30932

ncpibm opened this issue Mar 5, 2025 · 0 comments · May be fixed by #30839
Assignees
Labels
in:Transport release bug This bug is present in a released version of Open Liberty team:Sirius

Comments

@ncpibm
Copy link
Contributor

ncpibm commented Mar 5, 2025

Describe the bug

The current behavior only removes old logs when the running process creates more than the maxFiles limit, leaving older logs from previous runs untouched. As a result, when the server restarts, these old log files remain.

Steps to Reproduce

Set the maxFiles property in access logging.
Restart the server.
Observe that old log files continue to accumulate instead of being removed.

Expected behavior

The system should clean up the log directory after every restart, ensuring that only the specified number of files (as per maxFiles) remain.
This prevents the log directory from growing indefinitely and ensures strict adherence to the configured retention policy.

@ncpibm ncpibm added the release bug This bug is present in a released version of Open Liberty label Mar 5, 2025
@ncpibm ncpibm self-assigned this Mar 5, 2025
@github-project-automation github-project-automation bot moved this to General Issues in Web Tier Team Mar 5, 2025
@pnicolucci pnicolucci moved this from General Issues to httpAccessLogging maxfiles in Web Tier Team Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Transport release bug This bug is present in a released version of Open Liberty team:Sirius
Projects
Status: httpAccessLogging maxfiles
Development

Successfully merging a pull request may close this issue.

2 participants