This guide is intended for Operations Managers and Webmasters. It explains how to access and view OTLP-formatted logs generated by applications running in Kubernetes pods. These logs can be viewed directly through the pod console.
Prerequisites
-
Access to the Kubernetes cluster where the application is deployed.
-
Permissions to view pod logs
Steps
-
Identify the pod running the application.
kubectl get pods -n expertflow -
View logs for a specific pod:
kubectl logs <pod-name> -n expertflowReplace
<pod-name>with the pod you want to inspect. -
Filter logs (optional)
-
audit logs
kubectl logs <pod-name> -n <namespace> | grep "audit_logging" -
tracing logs
kubectl logs <pod-name> -n <namespace> | grep "tracing"
-