Tips for printing logs
The different log types, such as access or application logs, can be printed using the kubectl logs
as mixed output.
- For better orientation, filter the printed logs according to your needs:
- Use
kubectl logs <POD> -c airlock-microgateway-engine
to print the logs for the engine container in a pod. For more options, see kubectl logs reference. - Use
grep <query>
to filter the log-message output according to your requirements. - With the jq-JSON processor (or equivalent) installed, you may pipe the logs output to the processor for better formatting and readability.