This page explains how to access Google Cloud VPN logs.
Google Cloud VPN logs are stored in Stackdriver Logging. Logging is automatic and does not need to be enabled.
How to view logs
To view logs for your tunnel from the Cloud Platform Console, do the following:
- Go to the Logs page in the Google Cloud Platform Console.
Go to the Logs page.
- To see all VPN logs, in the first pull-down menu select Compute Engine > targetVPNGateway.
- To see logs for just one gateway, select a single gateway name from the list.
To get a direct URL from the
gcloud command-line tool, do the following:
Determine the name of your tunnel:
gcloud compute --project PROJECT_ID vpn-tunnels list --region us-central1
Get details on your tunnel:
gcloud compute --project PROJECT_ID vpn-tunnels describe tunnel1 \ --region us-central1
From the following line in your output, copy the URL into your browser:
detailedStatus: 'Tunnel is up and running. More info: https://console.developers.google.com/project/...
Refer to the Stackdriver Logging documentation for more information, including how to export logs and how to use logs-based metrics for monitoring and alerting.