*This page
applies to **Apigee** , but not to **Apigee hybrid**.*


*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*
![](https://fonts.gstatic.com/s/i/googlematerialicons/help/v13/gm_grey-24dp/1x/gm_help_gm_grey_24dp.png)

This page describes how to find and use [Cloud Logging](https://docs.cloud.google.com/logging/docs.md.txt) to
query and view maintenance logs for an Apigee instance.

## View logs for scheduled maintenance

You can use the Google Cloud console to query and view logs for scheduled
maintenance.

1. In the Google Cloud console, go to the **Logs Explorer** page.

   [Logs Explorer](https://console.cloud.google.com/logs/query)
2. At the top of the page, select your Google Cloud project.
3. From the time-range menu, select a range for which you want to query maintenance logs. For example, you can query for logs that Apigee captured over the past 30 days.
4. In the Query builder, add the following lines of code:

   ```
   logName="projects/PROJECT_NAME/logs/maintenance.googleapis.com%2Factivity_log"
   labels.activity_type_name="ApigeeMaintenanceAdvanced"
       
   ```

   Replace <var translate="no">PROJECT_NAME</var> with the name of your
   Google Cloud project.
5. Click **Run query**. The logs appear for scheduled maintenance.

## View logs for in-progress maintenance

You can use the Google Cloud console to query and view logs for maintenance that's
in progress.

1. In the Google Cloud console, go to the **Logs Explorer** page.

   [Logs Explorer](https://console.cloud.google.com/logs/query)
2. At the top of the page, select your Google Cloud project.
3. From the time-range menu, select a range for which you want to query maintenance logs. For example, you can query for logs that Apigee captured over the past 30 days.
4. In the Query builder, add the following lines of code:

   ```
   logName="projects/PROJECT_NAME/logs/maintenance.googleapis.com%2Factivity_log"
   labels.activity_type_name="ApigeeMaintenanceOngoing"
   labels.is_completed="false"
       
   ```

   Replace <var translate="no">PROJECT_NAME</var> with the name of your
   Google Cloud project.
5. Click **Run query**. The logs appear for maintenance that's in progress.

## View logs for completed maintenance

You can use the Google Cloud console to query and view logs for maintenance that's
completed.

1. In the Google Cloud console, go to the **Logs Explorer** page.

   [Logs Explorer](https://console.cloud.google.com/logs/query)
2. At the top of the page, select your Google Cloud project.
3. From the time-range menu, select a range for which you want to query maintenance logs. For example, you can query for logs that Apigee captured over the past 30 days.
4. In the Query builder, add the following lines of code:

   ```
   logName="projects/PROJECT_NAME/logs/maintenance.googleapis.com%2Factivity_log"
   labels.activity_type_name="ApigeeMaintenanceOngoing"
   labels.is_completed="true"
       
   ```

   Replace <var translate="no">PROJECT_NAME</var> with the name of your
   Google Cloud project.
5. Click **Run query**. The logs appear for maintenance that's completed.

## View logs for canceled maintenance

You can use the Google Cloud console to query and view logs for maintenance that's
canceled.

1. In the Google Cloud console, go to the **Logs Explorer** page.

   [Logs Explorer](https://console.cloud.google.com/logs/query)
2. At the top of the page, select your Google Cloud project.
3. From the time-range menu, select a range for which you want to query maintenance logs. For example, you can query for logs that Apigee captured over the past 30 days.
4. In the Query builder, add the following lines of code:

   ```
   logName="projects/PROJECT_NAME/logs/maintenance.googleapis.com%2Factivity_log"
   labels.activity_type_name="ApigeeMaintenanceCancelled"
       
   ```

   Replace <var translate="no">PROJECT_NAME</var> with the name of your
   Google Cloud project.
5. Click **Run query**. The logs appear for maintenance that's canceled.