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

save logs after controller restart #889

Open
Rafmoshe2500 opened this issue Mar 5, 2024 · 2 comments
Open

save logs after controller restart #889

Rafmoshe2500 opened this issue Mar 5, 2024 · 2 comments

Comments

@Rafmoshe2500
Copy link

Hi, every time the controller is restart all the logs are deleted.
And when we have an issue in our environments sometimes the controller is restart and we can not eead previoes logs.

How can we modify the writing logs path of trident-main logs.

Thanks.

@wonderland
Copy link

You should be able to get previous logs by using the "--previous" parameter of kubectl, e.g.

kubectl logs deployment.apps/trident-controller -c trident-main -n trident --previous

For further analysis, long-term storage etc. of container logs you'd typically deploy a collector of your choice (such as fluentd, fluent bit, Vector, logstash,...) to collect logs and forward it to whatever solution you prefer. Trident would be just like any other container on your cluster in that regard.

@Rafmoshe2500
Copy link
Author

Thanks for answer. But because the controller is restart, The container is terminated and all the logs are deleted.

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

No branches or pull requests

2 participants