Access agent pod and share logs for troubleshooting

How to access agent pod and share logs for troubleshooting?

  1. Log in to your Kubernetes cluster.
  2. Get the agent pods using the below command:
    kubectl get pods --selector=app=site24x7-agent
  3. Access the pods,which you want to troubleshoot using the below command:
    kubectl exec -it {pod_name} -- /bin/bash
  4. Navigate to the agent logs folder: cd /opt/site24x7/monagent/logs
  5. Zip them and send it to support@site24x7.com