840963657 opened a new issue, #8480:
URL: https://github.com/apache/apisix/issues/8480
### Current Behavior
I set the value of interval to 86400 (24*60*60), then access and error log
files are rotate at 08:00, not 00:00
### Expected Behavior
access and error log files should rotate at 00:00
### Error Logs
![Uploading image.png…]()
-rw-r--r-- 1 nobody root 0 12月 4 08:00 2022-12-05_08-00-00_access.log
-rw-r--r-- 1 nobody root 975330 12月 5 08:00 2022-12-05_08-00-00_error.log
-rw-r--r-- 1 nobody root 82055 12月 5 17:14 2022-12-06_08-00-00_access.log
-rw-r--r-- 1 nobody root 1719284 12月 6 08:00 2022-12-06_08-00-00_error.log
-rw-r--r-- 1 nobody root 0 12月 6 08:00 2022-12-07_08-00-00_access.log
-rw-r--r-- 1 nobody root 1079346 12月 7 08:00 2022-12-07_08-00-00_error.log
-rw-r--r-- 1 nobody root 0 12月 7 08:00 2022-12-08_08-00-00_access.log
-rw-r--r-- 1 nobody root 459141 12月 8 08:00 2022-12-08_08-00-00_error.log
### Steps to Reproduce
1.open log-retate plugin;
2.configure the following parameters on the config-default.yaml
plugin_attr:
log-rotate:
interval: 86400 # rotate interval (unit: second)
max_kept: 180 # max number of log files will be kept
enable_compression: false # enable log file compression(gzip) or not,
default false
3. reload apisix
4. Observation access and error log files name
### Environment
- APISIX version (run `apisix version`): 2.13
- Operating system (run `uname -a`): Linux localhost.localdomain
3.10.0-1062.18.1.el7.x86_64 #1 SMP Tue Mar 17 23:49:17 UTC 2020 x86_64 x86_64
x86_64 GNU/Linux
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx
version: openresty/1.19.9.1
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant: 2.10
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
/usr/local/bin/luarocks 3.8.0
--
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]