Inspect logs in Kubernetes deployments
- Last Updated: December 23, 2025
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You can retrieve and filter logs from Kubernetes deployments for debugging purposes. Use the
following commands to inspect logs in Kubernetes environments:
- To view recent logs from the deployment, run:This command retrieves the last 100 log entries from the
kubectl logs deploy/oemcp-server -n <ns> --tail=100oemcp-serverdeployment in the specified namespace. You can use the output to quickly review recent activity and confirm that logs are being generated. - To stream logs and filter audit events, run:
kubectl logs deploy/oemcp-server -n <ns> -f | jq '. | select(.logger=="audit")'This command streams logs in real time and uses
jqto filter entries where the logger is set to"audit". Audit logs provide visibility into tool invocations and rate limiting actions.