im locking for a simple way to automated Download the Logs of a pod. Best would be with the Rest API but i wasn’t able to find sth.
Rancher offer “central log” feature… in cluster logging settings… If you (for example) setup an ELK stack to received them… all the log of each pod of that cluster you be send in the central logging ELK… from there you could do what you want with them…
You could also use Rancher/Kubectl cli to do the job using script or command line:
eg: kubectl logs nginx-ingress-controller-##### -n ingress-nginx
- or -
rancher kubectl logs nginx-ingress-controller-##### -n ingress-nginx
Hope it help…