Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop tailing logs after log rotation in k8s #166

Open
arezvani opened this issue Jul 25, 2024 · 1 comment
Open

Stop tailing logs after log rotation in k8s #166

arezvani opened this issue Jul 25, 2024 · 1 comment

Comments

@arezvani
Copy link

Hi,
I have a problem where Kail stops collecting logs from a pod that produces logs at a high rate after a while. I tried to find out why this happens and discovered that this issue occurs when kubectl logs -f also stops. I found out that this is due to log rotation in Kubernetes. Kail works like tail -f rather than tail -F, which uses inode tracking.

@arezvani
Copy link
Author

arezvani commented Jan 9, 2025

https://github.com/arezvani/tailer

Tailer is a tool designed to dynamically monitor Kubernetes pod logs, ensuring that logs from all containers, including new and recreated pods, are collected without missing critical events. Tailer overcomes Kubernetes’ default connection timeout limitations and provides a robust solution for long-term log collection. Tools like Stern and Kail also face the same challenge due to Kubernetes’ default connection timeout limitations, which can disrupt long-term log monitoring. Tailer overcomes these issues and provides a robust solution for persistent log collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant