-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
How to disable access.log? #2210
Comments
AFAIK you need to use a custom nginx template to do this. |
IMHO a little bit overkill just for disabling an access log. Parameter would come in handy... Nevertheless I tested custom Nginx template and it worked obviously well. Thank you. |
I agree, I use a custom nginx template just to handle nginx logs the way I want too. |
Correct, currently the way to handle this is through a custom template. As we discuss changes to distributing and configuring Kong moving forward (see #2355), this may change, but for now this is the appropriate way. |
Update: with commit 23585aa and Kong version 1.3.0 (OpenResty version 1.15.8.1) access logs may be disabled with |
Is it possible to disable Nginx acces.log in Kong 0.10.0?
There is no such option in default kong.conf, although in auto-generated .kong_env file is
nginx_acc_logs
parameter set to/usr/local/kong/logs/access.log
. From where comes this value? Addingnginx_acc_logs = off
ornginx_acc_logs = /dev/null
into kong.conf and restarting Kong has no effect.The text was updated successfully, but these errors were encountered: