Understanding Kubernetes Logs

Understanding Kubernetes Logs


Kubernetes logging refers to the process of capturing & storing log data generated by the Kubernetes cluster and the applications running on it. This data includes information about application performance, errors, warnings, and other events. In a Kubernetes environment, Log collection is bit complicated than in conventional virtual machines or physical machines. There are two main levels of logging:

Container-level logging: Logs are generated by containers using stdout and stderr, and can be accessed using the logs command in kubectl. Kubernetes has log drivers for each container runtime, and can automatically locate and read these log files.

Node-level logging: Actual log files saved at the node level


image source: given in the top right corner of the image


References:

[1] https://logz.io/blog/a-practical-guide-to-kubernetes-logging/#simple_example

[2] https://cloudyuga.guru/hands_on_lab/logging-k8s

[3] https://devopscube.com/kubernetes-logging-tutorial/

[4] https://www.cncf.io/blog/2023/07/03/kubernetes-logging-best-practices/

[5] https://www.bluematador.com/blog/kubernetes-log-management-the-basics


NAVEED ABDUL SATTAR

Trusted Advisor & Problem Solver | Cloud Consultant | Ready for Anything

1 年
回复

要查看或添加评论,请登录

Dr. Rabi Prasad Padhy的更多文章

社区洞察

其他会员也浏览了