D3: Viewing & Filtering Logs
Google Cloud Associate Cloud Engineer exam practice questions · 11 flashcards
Question
Where do you view logs?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Viewing & Filtering Logs practice questions and answers
- Where do you view logs?Logs Explorer in Cloud Logging.
- Example query for VM errors?resource.type="gce_instance" AND severity>=ERROR.
- How do you read logs with gcloud?gcloud logging read 'FILTER' --limit=N.
- Common log entry fields?logName, resource, severity, timestamp, textPayload/jsonPayload/protoPayload, labels.
- How do you see a log entry's full details?Expand the entry in Logs Explorer to view all fields.
- How do you filter by a specific field value?Click the field value and choose show matching entries, or add it to the query.
- What does the histogram show?Log volume over time, helping spot spikes.
- How do you see surrounding logs?Use 'show entries nearby' / view in context.
- How do you save queries?Save them in Logs Explorer for reuse.
- Severity levels?DEFAULT, DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY.
- How do you find who changed a resource?Filter Admin Activity audit logs and check protoPayload.authenticationInfo.principalEmail.