Home gcp---log-query
Post
Cancel

gcp---log-query

To clip out just the MESSAGE format of the logs, use jq

gcloud logging read "logName=projects/losers-dev-1/logs/kubelet" --limit 10 --format json | jq '.[].jsonPayload.MESSAGE

This post is licensed under CC BY 4.0 by the author.