-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
help request: I use enable_compression in log-rotate plugin, but apisix did not delete the original access log #9819
Comments
apisix/apisix/plugins/log-rotate.lua Lines 172 to 184 in 513c052
It seems cause by that the log file too large cause compress command timeout and then return immediately, not remove origin file. Maybe we can increase the |
Indeed, the compression timed out. below is the error.log 2023/07/11 00:00:11 [error] 52#52: *45898080 [lua] log-rotate.lua:186: compression_file(): compress log file from 2023-07-11_00-00-00__access.log to 2023-07-11_00-00-00__access.log.tar.gz fail, stdout: stderr: reason: failed to wait for process: timeout status: nil, context: ngx.timer |
#8620 |
@alptugay the PR has been reopened, I have left review comments let's get this merged. 🔥 |
fixed by #8620 |
Description
I configged in config.yml like this:
but the original log does not deleted:
why? how should I fix this ?
Environment
The text was updated successfully, but these errors were encountered: