Is there a way to purge old logs from minio on k8s...
# ask-community-for-troubleshooting
h
Is there a way to purge old logs from minio on k8s?
✍️ 1
My minio pod is constantly filling up - and since it doesn’t seem to clean itself, this will just grow indefinitely - I don’t think I’ll ever read logs older than a few days, so it’s safe to delete them after <x> days I think
u
@[DEPRECATED] Marcos Marx turned this thread into Zendesk ticket 2654 to ensure timely resolution!
s
You can ssh into the minio pods and delete all logs under the storage path.
h
is there a way to do this a bit more structurally? an API I can call, a flag I can set somewhere?
s
I'm not sure. The API doesn't have an endpoint for removing logs and I don't believe there's anything in the environmental variables that would accomplish this task. I'll ask the team and get back to you.
🙏 1
h
The reason I ask: our cluster does not allow non-admin users to ssh into pods, so I’d have to chase an admin every time the logs fill up
l
Any update on this one? I can't view that Zendesk ticket
Oddly very difficult to delete these logs on the minio