View pipeline job logs

After you define, build, and run a pipeline, you can view and query log entries for your pipeline job and pipeline tasks. Learn more about log entries for the Gemini Enterprise API.

This feature has costs associated with it. Learn more about Cloud Logging pricing.

View Gemini Enterprise logs for pipeline jobs

Use the following instructions to view logs for your Agent Platform Pipelines jobs in the Google Cloud console or the Google Cloud CLI.

Console

  1. Enable the Cloud Logging API:

    Enable the API

  2. In the Google Cloud console, go to the Logs Explorer:

    Go to the Logs Explorer

  3. Select an existing Gemini Enterprise Agent Platform project at the top of the page.

  4. In the Query builder, add the following:

    • Resource: Select Vertex Pipelines Job. In the dialog, select a Agent Platform Pipelines job.
    • Log names: In the Gemini Enterprise Agent Platform section, select aiplatform.googlapis.com/pipeline_job_events.
    • Severity: Select a log level.
    • Time range: Select a preset range or create a custom range.

gcloud

  1. Run the following command to enable the Cloud Logging API:

    gcloud services enable logging.googleapis.com
    
  2. Execute the gcloud logging read command:

    Linux, macOS, or Cloud Shell

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_events" \
        --limit=LIMIT

    Windows (PowerShell)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_events" `
        --limit=LIMIT

    Windows (cmd.exe)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_events" ^
        --limit=LIMIT
     

View Gemini Enterprise API logs for pipeline tasks

Use the following instructions to view logs for your Agent Platform Pipelines tasks in the Google Cloud console or the Google Cloud CLI.

Console

  1. Enable the Cloud Logging API:

    Enable the API

  2. In the Google Cloud console, go to the Logs Explorer:

    Go to the Logs Explorer

  3. Select an existing Gemini Enterprise Agent Platform project at the top of the page.

  4. In the Query builder, add the following:

    • Resource: Select Vertex Pipelines Job. In the dialog, select a Agent Platform Pipelines job.
    • Log names: In the Gemini Enterprise Agent Platform section, select aiplatform.googlapis.com/pipeline_job_task_events.
    • Severity: Select a log level.
    • Time range: Select a preset range or create a custom range.

gcloud

  1. Run the following command to enable the Cloud Logging API:

    gcloud services enable logging.googleapis.com
    
  2. Execute the gcloud logging read command:

    Linux, macOS, or Cloud Shell

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_task_events" \
        --limit=LIMIT

    Windows (PowerShell)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_task_events" `
        --limit=LIMIT

    Windows (cmd.exe)

    gcloud logging read "projects/PROJECT_ID/logs/aiplatform.googleapis.com/pipeline_job_task_events" ^
        --limit=LIMIT
     

What's next