# Kong api log is missing from my server

**URL:** https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543
**Category:** Questions
**Created:** [February 15, 2018, 4:12am UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543 "2018-02-15T04:12:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![nanaromance](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nanaromance](https://discuss.konghq.com/u/nanaromance)
#### Post date: [February 15, 2018, 4:12am UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/1 "2018-02-15T04:12:56Z")

</div>

kong api log under /use/local/kong/logs path is missing from my kong server.  
Under logs path having file as below.  
access.log  
admin\_access.log  
error.log

How to get log back?

My environment  
kong version 0.11.2  
Ubuntu 16.04.2 LTS

---

<div class="post-metadata">

### Author: ![kikito](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/kikito/32/15_2.png) [@kikito](https://discuss.konghq.com/u/kikito)
#### Post date: [February 15, 2018, 2:02pm UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/2 "2018-02-15T14:02:54Z")

</div>

Hello, `access.log` and `error.log` are the default logfiles provided by nginx. What was the name of the file you are missing?

---

<div class="post-metadata">

### Author: ![ldeveloperl1985](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@ldeveloperl1985](https://discuss.konghq.com/u/ldeveloperl1985)
#### Post date: [February 16, 2018, 7:30am UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/3 "2018-02-16T07:30:23Z")

</div>

If you want to see your debug Example: `ngx.log(ngx.DEBUG, 'log details')` log then you need to change log\_level notice to debug in /etc/kong/kong.conf or /etc/kong/kong.conf.default

```auto
log_level = debug

```

And the DEBUG and ERR log is printed in the same error.log file.

---

<div class="post-metadata">

### Author: ![nanaromance](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nanaromance](https://discuss.konghq.com/u/nanaromance)
#### Post date: [February 19, 2018, 6:30am UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/4 "2018-02-19T06:30:25Z")

</div>

Hi i’m already resolve my problem because i’m comment out admin\_access\_log and admin\_error\_log from kong.conf

---

<div class="post-metadata">

### Author: ![nanaromance](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nanaromance](https://discuss.konghq.com/u/nanaromance)
#### Post date: [February 19, 2018, 6:31am UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/5 "2018-02-19T06:31:15Z")

</div>

But i’ve a question.  
Kong is provide to rotate kong log or not?

---

<div class="post-metadata">

### Author: ![kikito](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/kikito/32/15_2.png) [@kikito](https://discuss.konghq.com/u/kikito)
#### Post date: [February 19, 2018, 11:56am UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/6 "2018-02-19T11:56:08Z")

</div>

Kong does not rotate its logs. It’s possible to set up an external tool like logrotate over its logs. The way to do this will depend on how you have installed Kong in the first place.

---

<div class="post-metadata">

### Author: ![thibaultcha](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/thibaultcha/32/340_2.png) [@thibaultcha](https://discuss.konghq.com/u/thibaultcha)
#### Post date: [February 19, 2018, 7:10pm UTC](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/7 "2018-02-19T19:10:51Z")

</div>

Just to clarify: it isn’t Kong’s responsibility to rotate logs but yours. Kong _can_ rotate logs just like NGINX does (Kong _is_ NGINX). If you want to rotate Kong’s logs, do it the same way you would rotate NGINX’s logs.
