This page describes how you can use the VPC Service Controls violation analyzer to understand and diagnose issues that VPC Service Controls logs.
VPC Service Controls logs include details about requests to protected resources and the reason why VPC Service Controls denied the request. However, these details aren't always easily apparent and you might spend considerable time understanding the logs. You can use the VPC Service Controls violation analyzer to diagnose denials from a service perimeter. For information about violation reasons, see Debugging requests blocked by VPC Service Controls.
You can also use the violation analyzer to diagnose denials from a service perimeter that uses a dry-run configuration.
Before you begin
To troubleshoot a VPC Service Controls violation, make sure that you have
the VPC Service Controls Troubleshooter Viewer IAM role
(roles/accesscontextmanager.vpcScTroubleshooterViewer
) at the organization level. This role doesn't
let you modify perimeters or access levels.
Access the violation analyzer
The violation analyzer is available only in the Google Cloud console. You can access the violation analyzer using either the Logs Explorer or the VPC Service Controls page.
Use the Logs Explorer
By using the Logs Explorer, you can move directly from a log entry for a VPC Service Controls denial to the violation analyzer.
To access the violation analyzer from a log entry, do the following:
In the Google Cloud console, go to the Logs Explorer page.
On the Logs Explorer page, use the denial's unique ID to access the log entry.
In the Query Results box, in the row for the denial that you want to troubleshoot, click VPC Service Controls, and then click Troubleshoot denial.
Use the VPC Service Controls page
From the VPC Service Controls page, you can troubleshoot a denial using its unique ID.
Before you begin, obtain the unique ID for the denial that you want to troubleshoot.
To access the violation analyzer from the VPC Service Controls page, do the following:
In the Google Cloud console navigation menu, click Security, and then click VPC Service Controls.
If you are prompted, select your organization. You can access the VPC Service Controls page only at the organization level.
On the VPC Service Controls page, click Violation analyzer.
On the Violation analyzer page, in the Troubleshooting token (or unique ID) field, enter the unique ID of the denial that you want to troubleshoot.
Click Continue.
If you want to diagnose the access denial event using its troubleshooting token (Preview), click Analyze full details in the troubleshooting result page.
What's next
- Understanding VPC Service Controls audit logs
- Learn how the VPC Service Controls unique identifier helps troubleshoot issues related to service perimeters.
- Diagnose an access denial using troubleshooting token in violation analyzer (Preview).