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/04/06 03:45:35 UTC

[GitHub] [apisix-ingress-controller] zlhgo opened a new issue, #950: request help: rotate log

zlhgo opened a new issue, #950:
URL: https://github.com/apache/apisix-ingress-controller/issues/950

   ### Issue description
   
   当日志输出到文件时增加日志切割功能。
   比如在我的环境,有一个自动删除3天没有写入日志的文件,ingress-controller是candidate状态的时候,就算是开启debug级别的日志也不会有日志输出,所以当过了3天日志文件就被清理了。之后ingress-controller成为了leader, 不过文件句柄还在,ingress-controller程序也能正常工作写入日志,但是日志采集程序就采不到日志了。希望能增加日志切割功能或定时写点日志也行。谢谢。
   
   ### Environment
   
   - your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
   Version: 1.4.0
   Git SHA: 1159522
   Go Version: go1.17.2
   Building OS/Arch: linux/amd64
   Running OS/Arch: linux/amd64
   - your Kubernetes cluster version (output of kubectl version):
   - if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
   


-- 
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-ingress-controller] tao12345666333 closed issue #950: feat request: rotate log

Posted by GitBox <gi...@apache.org>.
tao12345666333 closed issue #950: feat request: rotate log
URL: https://github.com/apache/apisix-ingress-controller/issues/950


-- 
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-ingress-controller] github-actions[bot] commented on issue #950: feat request: rotate log

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #950:
URL: https://github.com/apache/apisix-ingress-controller/issues/950#issuecomment-1203381486

   This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days 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-ingress-controller] tao12345666333 commented on issue #950: request help: rotate log

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #950:
URL: https://github.com/apache/apisix-ingress-controller/issues/950#issuecomment-1089952378

   @zlhgo Thanks for your advice. We can discuss it at the next community meeting.


-- 
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-ingress-controller] zlhgo commented on issue #950: request help: rotate log

Posted by GitBox <gi...@apache.org>.
zlhgo commented on issue #950:
URL: https://github.com/apache/apisix-ingress-controller/issues/950#issuecomment-1089923712

   @tao12345666333 嗯,只是一个建议,合理的话希望能考虑下。


-- 
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-ingress-controller] tao12345666333 commented on issue #950: feat request: rotate log

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #950:
URL: https://github.com/apache/apisix-ingress-controller/issues/950#issuecomment-1211755790

   #1200 has been merge. It has been implemented.


-- 
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-ingress-controller] tao12345666333 commented on issue #950: request help: rotate log

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #950:
URL: https://github.com/apache/apisix-ingress-controller/issues/950#issuecomment-1089875558

   In a Kubernetes environment, we usually recommend writing logs to stdout/stderr, which I don't think is a high priority requirement.
   
   
   https://github.com/apache/apisix-ingress-controller/blob/7e4ec36e36c9114d99156e72b19142d2026533fc/conf/config-default.yaml#L24-L28
   
   Why are you writing the log to a file?


-- 
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