# Kong file log control

**URL:** https://discuss.konghq.com/t/kong-file-log-control/7466
**Category:** General
**Tags:** kong-gateway
**Created:** [November 18, 2020, 8:11am UTC](https://discuss.konghq.com/t/kong-file-log-control/7466 "2020-11-18T08:11:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![HYUN\_SUK\_JUNG](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hyun_suk_jung/32/1122_2.png) [@HYUN\_SUK\_JUNG](https://discuss.konghq.com/u/HYUN_SUK_JUNG)
#### Post date: [November 18, 2020, 8:11am UTC](https://discuss.konghq.com/t/kong-file-log-control/7466/1 "2020-11-18T08:11:55Z")

</div>

I am using kong file log for fluent-bit side-car.  
The log is created inside the kong container, but is not deleted.  
I looked for the settings, but only the log settings were found, but I couldn’t find the rotate or delete settings.  
What settings are necessary to periodically clear the file log in the kong container?

[ENV]  
Kubernetes: v1.18.1  
kong:2.1  
kong-ingress-controller:0.9.1  
fluent-bit:1.5

[Reference]

> **[Configuration Reference - v2.5.x | Kong Docs](https://legacy-gateway--kongdocs.netlify.app/gateway-oss/2.1.x/configuration/)**
>
> Documentation for Kong, the Cloud Connectivity Company for APIs and Microservices.

[Configuration]  
prefix: /usr/local/kong/  
proxy\_error\_log: logs/proxy\_error.log  
admin\_error\_log: logs/admin\_error.log

Thank you for all…

=================== append

I found this  
Kong still doesn’t support log rotate?  
Is there any plan to support?  
I want to kong container image need to include logrotate.

> [@](#):
>
> Hi i’m already resolve my problem because i’m comment out admin\_access\_log and admin\_error\_log from kong.conf

> [@Kong api log is missing from my server](https://discuss.konghq.com/t/kong-api-log-is-missing-from-my-server/543/7):
>
> 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.

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.
