View logs

Cloud Scheduler publishes logs at the start of each execution and at the end of each execution. You can retrieve, view, and analyze the logs for a specific job, including the audit logs that are available for Cloud Scheduler.

To view logs, follow these steps:

  1. In the Google Cloud console, go to the Cloud Scheduler page.

    Go to Cloud Scheduler

  2. In the row of the job that you want to view the logs for, click Actions > View logs.

    The Logs Explorer page opens and lets you display log entries, parse and analyze them, and specify query parameters.

    To learn more about viewing logs in Logging, see View logs by using the Logs Explorer.

Sample queries

Query description Expression
Cloud Scheduler type and method
    resource.type="audited_resource"
    protoPayload.methodName=~"google.cloud.scheduler.v1.CloudScheduler.*"
Cloud Scheduler log name
    logName=("projects/PROJECT_ID/logs/cloudaudit.googleapis.com%2Factivity"
    OR "projects/PROJECT_ID/logs/cloudaudit.googleapis.com%2Fdata_access"
    OR "projects/PROJECT_ID/logs/cloudaudit.googleapis.com%2Fsystem_event"
    OR "projects/PROJECT_ID/logs/cloudaudit.googleapis.com%2Fpolicy")
    protoPayload.serviceName="cloudscheduler.googleapis.com"