> [!CAUTION]
> You are currently viewing version 1.3 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms#supported-versions).

<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">Version 1.3 (unsupported)</button>

- Supported versions:
- [v1.17 (latest)](https://docs.cloud.google.com/apigee/docs/hybrid/v1.17/logging-view.html)
- [v1.16](https://docs.cloud.google.com/apigee/docs/hybrid/v1.16/logging-view.html)
- [v1.15](https://docs.cloud.google.com/apigee/docs/hybrid/v1.15/logging-view.html)
- [v1.14](https://docs.cloud.google.com/apigee/docs/hybrid/v1.14/logging-view.html)
- [List of supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms#supported-versions)
- Unsupported versions:
- [v1.13](https://docs.cloud.google.com/apigee/docs/hybrid/v1.13/logging-view.html)
- [v1.12](https://docs.cloud.google.com/apigee/docs/hybrid/v1.12/logging-view.html)
- [v1.11](https://docs.cloud.google.com/apigee/docs/hybrid/v1.11/logging-view.html)
- [v1.10](https://docs.cloud.google.com/apigee/docs/hybrid/v1.10/logging-view.html)
- [v1.9](https://docs.cloud.google.com/apigee/docs/hybrid/v1.9/logging-view.html)
- [v1.8](https://docs.cloud.google.com/apigee/docs/hybrid/v1.8/logging-view.html)
- [v1.7](https://docs.cloud.google.com/apigee/docs/hybrid/v1.7/logging-view.html)
- [v1.6](https://docs.cloud.google.com/apigee/docs/hybrid/v1.6/logging-view.html)
- [v1.5](https://docs.cloud.google.com/apigee/docs/hybrid/v1.5/logging-view.html)
- [v1.4](https://docs.cloud.google.com/apigee/docs/hybrid/v1.4/logging-view.html)
- [v1.3](https://docs.cloud.google.com/apigee/docs/hybrid/v1.3/logging-view.html)
- [v1.2](https://docs.cloud.google.com/apigee/docs/hybrid/v1.2/logging-view.html)
- [v1.1](https://docs.cloud.google.com/apigee/docs/hybrid/v1.1/logging-view.html)


This topic explains how to view log data on
[Stackdriver](https://cloud.google.com/monitoring/kubernetes-engine/) and using the `kubectl logs`
command.

## View logs on Stackdriver


This section explains how to view Apigee hybrid logs on Stackdriver and directly using
`kubectl`.

> [!NOTE]
> Logging is provided by default on GKE and GKE on-prem. On these platforms, be sure that you have disabled logging in your overrides file by setting `logger.enabled` to `false`. On AKS, you must explicitly enable logging by setting `logger.enabled` to `true` in your overrides file.

If you are on GKE or Anthos GKE, logs are automatically sent to
[Stackdriver](https://cloud.google.com/monitoring/kubernetes-engine/).

**To view logs on Stackdriver:**

1. Go to [Monitoring Logs Viewer](https://console.cloud.google.com/logs/viewer?_ga=2.139334906.-813617201.1555966039).
2. In the resource-type drop-down list, select GKE Container, the name of your cluster, and your namespace ID. For example:  

   ![alt_text](https://docs.cloud.google.com/static/apigee/docs/hybrid/v1.3/images/gcp-namespace.png "image_tooltip")

   For more information, see
   [Viewing
   logs](https://cloud.google.com/logging/docs/view/overview) in the GCP documentation.

The following example shows hybrid log output in the Log viewer:

![alt_text](https://docs.cloud.google.com/static/apigee/docs/hybrid/v1.3/images/gcp-mdtlogs.png "image_tooltip")

## View log files directly

You can view the logs that are written to each pod's filesystem
directly using [`kubectl`](https://kubernetes.io/docs/reference/kubectl/overview/), as follows:

```
kubectl logs pod_name -n namespace
```

For example:

```
kubectl logs apigee-mp-hybrid-docs-test-blue-6fb96f5b9-2k8hp -n my-namespace
```