Ultimate access to all questions.
Imagine you're on an SRE team responsible for an Apache web service application deployed on Google Compute Engine, with FluentD installed for logging. Your task is to review the Apache logs. Which query would you use?
Explanation:
The correct query targets the Apache logs by specifying the resource type as gce_instance
and the appropriate log names (/apache-access
or /apache-error
). The other options either target the wrong resource type (gae_app
) or the wrong logs (Admin activity and Data Access logs). For more details, refer to Logging agent application queries.