10.3 Verifying the Pods
- Run the following command to check the logstash pod is created
correctly:
For example:kubectl get pods -n <namespace>
The output should look similar to the following:kubectl get pods -n oudsmnsNAME READY STATUS RESTARTS AGE oudsm-1 1/1 Running 0 51m oudsm-logstash-56dbcc6d9f-mxsgj 1/1 Running 0 2m7sNote:
Wait a couple of minutes to make sure the pod has not had any failures or restarts. If the pod fails you can view the pod log using:kubectl logs -f oudsm-logstash-<pod> -n oudsmnsIf the logstash pod has problems, see Troubleshooting Pod and Logstash Errors.