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

How to disable access.log? #2210

Closed
deefha opened this issue Mar 16, 2017 · 5 comments
Closed

How to disable access.log? #2210

deefha opened this issue Mar 16, 2017 · 5 comments

Comments

@deefha
Copy link

deefha commented Mar 16, 2017

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? Adding nginx_acc_logs = off or nginx_acc_logs = /dev/null into kong.conf and restarting Kong has no effect.

@mbugeia
Copy link

mbugeia commented Mar 20, 2017

AFAIK you need to use a custom nginx template to do this.

@deefha
Copy link
Author

deefha commented Mar 22, 2017

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.

@mbugeia
Copy link

mbugeia commented Mar 23, 2017

I agree, I use a custom nginx template just to handle nginx logs the way I want too.

@p0pr0ck5
Copy link
Contributor

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.

@RobSerafini
Copy link
Contributor

Update: with commit 23585aa and Kong version 1.3.0 (OpenResty version 1.15.8.1) access logs may be disabled with KONG_PROXY_ACCESS_LOG=off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants