kubernetes-ingress
kubernetes-ingress copied to clipboard
Make access_log for main configurable
Is your feature request related to a problem? Please describe. Currently it is not possible to globally configure log forward of access logs in a simple way. Logging high volume access logs to stdout means that they get forwarded to the log stack in Kubernetes. This can be problematic depending on the stack.
Describe the solution you'd like Add a directive to the global Config map where the main access_log directive can be overridden
Describe alternatives you've considered An alternative solution is to use a custom main template which is far from simple.
Additional context Add any other context or screenshots about the feature request here.
Hi @hafe thanks for reporting!
Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this :slightly_smiling_face:
Cheers!
Just to mention, I have started working on a pull request.
Thank you @hafe we will review this issue in our community call.
related https://github.com/nginxinc/kubernetes-ingress/discussions/4341
Hi @hafe ,
We had a chance to discuss this issue and I want to add some context.
The future state is to integrate with OpenTelemetry and streaming logs using it. We are planning on it but we do not have a timeline for this work.
Until we get to a more robust solution we are happy to accept your contribution with some conditions:
1 - We need a flag to enable the access log 2 - The default access log is always off 3 - We must block any configuration that allows logging to files
Please let us know what you think about it?
Let's see:
- already exist
- is the inverse of today's default, I don't understand?
- I can see if I can add some validation to not allow file
Apologies, I should mention that I was looking in the PR.
Keep the flag as it is AccessLogOff.
Allow the access_log configuration but preventing logging to files.
Check latest version, only allows syslog
Tagging @jjngx