-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Enable access_log rotate for ingress #1964
Comments
The problem with your request is the we don't log to file but to
|
@gyliu513 I have the same concern as @aledbf. The log is dumped into The general log rotate of kuberentes in host level (https://kubernetes.io/docs/concepts/cluster-administration/logging/#logging-at-the-node-level) or in pod level (kubernetes/kubernetes#15478) should be the solution you expect. |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
/kind enhancement
In some stress cluster, we often found that ingress controller generate too many log messages and eat up the disk capacity quickly. It is because the access log is enabled.
After we set
disable-access-log: true
, the system come back and there are not too much logs for ingress controller, but the problem is that sometimes the end user need those logs for some debugging purpose, and disabling the access log make the end user has no chance to do such debugging.One solution for this is that ingress controller should enable log rotate and log size limit, so that we can control the log in a more fine-grained mode.
There are actually some reference for this issue:
@aledbf any comments for this?
/cc @todkap
NGINX Ingress controller version:
Kubernetes version (use
kubectl version
):Environment:
uname -a
):What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
The text was updated successfully, but these errors were encountered: