How can I find the IBM Cloud Logs Logging agent logs?
You might need to know where to find the Logging agent logs when debugging an issue where IBM® Cloud Logs is not receiving logs sent by the Logging agent.
You believe you have configured the Logging agent from your Kubernetes clusters or Linux environments correctly, but you are seeing one or more of the following:
-
Logs not appearing in IBM Cloud Logs.
-
Logs in the IBM Cloud Logs UI starting with the string
ICL dropped logs.
There can be an issue with the Logging agent where logs are not being ingested and you want to review the Logging agent logs in the environment where the Logging agent is running.
The Logging agent log location depends on the environment where the Logging agent is running.
Kubernetes
-
For IBM Cloud Kubernetes Service do the following:
The Logging agent daemonset runs on each pod. To list all pods for the
log-agentdaemonset run:kubectl get pods -n ibm-observe -o wide -l app=logs-agentTo look at the logs for a specific pod run the following command where
<POD_NAME>is the pod name.kubectl logs -n ibm-observe <POD_NAME> -
For Red Hat OpenShift on IBM Cloud do the following:
The Logging agent daemonset runs on each pod. To list all pods for the
log-agentdaemonset run:oc get pods -n ibm-observe -o wide -l app=logs-agentTo look at the logs for a specific pod run the following command where
<POD_NAME>is the pod name.oc logs -n ibm-observe <POD_NAME>
Linux
To view logs for the Logging agent running in Linux, from the Linux system run the following:
journalctl -u fluent-bit.service