jinjianming opened a new issue, #9536: URL: https://github.com/apache/apisix/issues/9536
### Current Behavior open file-logger ``` curl http://127.0.0.1:9180/apisix/admin/global_rules/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "plugins": { "file-logger": { "path": "logs/access.log" } } }' ``` My log rotate configuration ``` apisix@apisix-54556754d8-mpfx8:/usr/local/apisix$ cat conf/config.yaml |grep -A 4 log-r - log-rotate stream_plugins: - mqtt-proxy - ip-restriction - limit-conn -- log-rotate: enable_compression: false interval: 15 max_kept: 2 max_size: -1 ``` My log file ``` apisix@apisix-54556754d8-mpfx8:/usr/local/apisix$ ls -al logs/ total 432 drwxr-xr-x 1 apisix apisix 4096 May 24 12:26 . drwxr-xr-x 1 apisix apisix 4096 May 24 12:24 .. lrwxrwxrwx 1 apisix apisix 11 Mar 8 10:04 2023-05-24_12-24-30__access.log -> /dev/stdout -rw-r--r-- 1 apisix apisix 303759 May 24 12:35 2023-05-24_12-24-45__access.log -rw-r--r-- 1 apisix apisix 28775 May 24 12:33 2023-05-24_12-25-00__access.log -rw-r--r-- 1 apisix apisix 28798 May 24 12:35 2023-05-24_12-25-30__access.log -rw-r--r-- 1 apisix apisix 32041 May 24 12:34 2023-05-24_12-26-00__access.log lrwxrwxrwx 1 apisix apisix 11 Mar 8 10:04 error.log -> /dev/stderr -rw-r--r-- 1 apisix apisix 2 May 24 12:24 nginx.pid ``` ### Expected Behavior _No response_ ### Error Logs _No response_ ### Steps to Reproduce open file-logger ``` curl http://127.0.0.1:9180/apisix/admin/global_rules/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "plugins": { "file-logger": { "path": "logs/access.log" } } }' ``` ### Environment - APISIX version (run `apisix version`): - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
