Bird
0
0

You run this command but get no output:

medium📝 Troubleshoot Q14 of 15
GCP - Cloud Monitoring and Logging
You run this command but get no output:
gcloud logging read "severity=CRITICAL" --limit 5
What is the most likely reason?
AThe command syntax is incorrect
BThere are no logs with severity CRITICAL in the selected time range
CThe gcloud tool is not installed
DThe limit flag cannot be used with severity filters
Step-by-Step Solution
Solution:
  1. Step 1: Check command syntax

    The command syntax is correct; 'gcloud logging read' supports severity filters and limit.
  2. Step 2: Consider reasons for no output

    No output usually means no matching logs exist for severity CRITICAL in the default time range.
  3. Final Answer:

    There are no logs with severity CRITICAL in the selected time range -> Option B
  4. Quick Check:

    No output often means no matching logs [OK]
Quick Trick: No output? Check if logs exist for that severity [OK]
Common Mistakes:
  • Assuming syntax error without checking
  • Thinking limit flag is invalid with filters
  • Ignoring that no logs might exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes