You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/19 06:32:05 UTC

[GitHub] [apisix] mikawudi opened a new issue, #7743: feat: config time of log-rotate plugin work

mikawudi opened a new issue, #7743:
URL: https://github.com/apache/apisix/issues/7743

   ### Description
   
   log-rotate work on 
   first:
       rotate_time = now_time + interval - (now_time % interval)
   update:
        rotate_time = rotate_time + interval
   when i set interval = 86400 and compression = true, i wan't the log-rotate rename and compression access and error log every day, but  now_time is timestamp of second.....server timezone in +08:00, so it work at 08:00 am every day.....
   can i add an config field to offset the work time? because 08:00 is busy time......compression big access log file in busy time is not a good idea
   <img width="723" alt="E8005A50-7B76-4454-A8C0-486174F53A65" src="https://user-images.githubusercontent.com/8215006/185557443-4e721264-9c94-4cfd-a24b-4aefab47419f.png">
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] github-actions[bot] commented on issue #7743: feat: config time of log-rotate plugin work

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7743:
URL: https://github.com/apache/apisix/issues/7743#issuecomment-1678699650

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] spacewander commented on issue #7743: feat: config time of log-rotate plugin work

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #7743:
URL: https://github.com/apache/apisix/issues/7743#issuecomment-1221535618

   > @mikawudi @spacewander Is it a good idea to do the log rotate based on cron-like expr?
   > 
   > ```
   > # run five minutes after midnight, every day
   > 5 0 * * *
   > ```
   
   LGTM


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] kingluo commented on issue #7743: feat: config time of log-rotate plugin work

Posted by GitBox <gi...@apache.org>.
kingluo commented on issue #7743:
URL: https://github.com/apache/apisix/issues/7743#issuecomment-1220498897

   @mikawudi @spacewander Is it a good idea to do the log rotate based on cron-like expr? 
   ```
   # run five minutes after midnight, every day
   5 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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] mikawudi commented on issue #7743: feat: config time of log-rotate plugin work

Posted by GitBox <gi...@apache.org>.
mikawudi commented on issue #7743:
URL: https://github.com/apache/apisix/issues/7743#issuecomment-1221769286

   > @mikawudi @spacewander Is it a good idea to do the log rotate based on cron-like expr?
   > 
   > ```
   > # run five minutes after midnight, every day
   > 5 0 * * *
   > ```
   
   @kingluo i think it's a good idea


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] github-actions[bot] commented on issue #7743: feat: config time of log-rotate plugin work

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7743:
URL: https://github.com/apache/apisix/issues/7743#issuecomment-1698872051

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] github-actions[bot] closed issue #7743: feat: config time of log-rotate plugin work

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7743: feat: config time of log-rotate plugin work
URL: https://github.com/apache/apisix/issues/7743


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org