Skip to content

Instantly share code, notes, and snippets.

@valbeat
Created July 11, 2019 05:55
Show Gist options
  • Save valbeat/23308c370431e1ea07d66cb6fbe7dfcd to your computer and use it in GitHub Desktop.
Save valbeat/23308c370431e1ea07d66cb6fbe7dfcd to your computer and use it in GitHub Desktop.
gcloud logging read --order=asc --format=json '
timestamp>="2019-06-13T12:20:00+09:00" AND timestamp<="2019-06-13T15:00:00+09:00"
AND resource.type="container"
AND logName="projects"
AND severity>=ERROR
AND sample(insertId, 0.001)
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment