Admin Activity audit logs are always on and free. You do not need to enable
Data Access logs or create a log sink.
Prerequisites
- A Google Cloud organization
- Permission to grant roles at the organization level
- A dedicated project for the Wirespeed service account, where you can create service accounts and keys and enable APIs (for example as project Owner, or with Service Account Admin, Service Account Key Admin, and Service Usage Admin)
Required Roles
Grant both roles on the organization, not on a project, so that they apply to every project, including new ones:Setup Instructions
Step 1: Create a Service Account
- Open the Google Cloud Console.
- Select a project dedicated to Wirespeed, or create one. Use a project with no other service accounts: if you have to allow key creation in Step 3, that exception applies to every service account in the project.
- Go to IAM & Admin > Service Accounts.
- Click Create Service Account.
- Enter a name, for example
wirespeed-audit-logs, and click Create and Continue. - Skip the optional project roles and click Done.
Step 2: Enable the APIs
Wirespeed’s requests count against the quota of the service account’s project, so these APIs must be enabled there:- In the same project, go to APIs & Services > Library.
- Enable the Cloud Resource Manager API.
- Enable the Cloud Logging API.
Step 3: Create a JSON Key
- Go back to IAM & Admin > Service Accounts and open the service account you created.
- Go to the Keys tab.
- Click Add Key > Create new key.
- Select JSON and click Create. The key file downloads automatically.
- Open the file and copy its entire contents, from the opening
{to the closing}.
Step 4: Grant the Organization Roles
- Select your organization in the project picker.
- Go to IAM & Admin > IAM and click Grant Access.
- In New principals, enter the service account email (
client_emailin the JSON key). - Add the Browser (
roles/browser) and Logs Viewer (roles/logging.viewer) roles. - Click Save.
Step 5: Find Your Organization ID
- With your organization selected, go to IAM & Admin > Settings.
- Copy the Organization ID.
Step 6: Configure Wirespeed
- In Wirespeed, go to Integrations > Add Integration.
- Select Google Cloud Audit Logs.
- Enter the Organization ID from Step 5 and paste the Service account key from Step 3.
- Click Save.
What Events Are Collected?
Wirespeed collects Admin Activity audit log entries (cloudaudit.googleapis.com/activity) from every active project in the
organization for three services:
Each entry keeps the full audit record, with the caller’s email, the caller’s
IP address, the project, and the API method available for search.
The first sync reads the previous hour. Each poll then reads the window since
the last one, about five minutes behind real time so that entries Cloud
Logging has not finished storing are not skipped.
Wirespeed refreshes the project list every hour. When a refresh finds a new
project, Wirespeed reads that project’s logs from the previous two hours, so
changes made right after a project is created are still collected.
Cloud Logging allows 60 log read requests per minute, and the limit cannot be
raised. Wirespeed reads up to 100 projects per request, so an organization
with 1,000 projects needs at least 10 requests per poll, plus one for each
additional page of results when there is a lot of activity.
Managed Detections
Wirespeed evaluates the collected logs with this managed detection. It is experimental while Wirespeed measures how often it fires:
API key events are collected for search but do not raise a detection. Cloud
Audit Logs records the key in API Keys requests and responses as an empty
object, so the log does not show which APIs a key can call.
Vertex AI configuration changes are collected for search but do not raise a
detection. Teams that use Vertex AI make these changes as part of normal work,
and no single change reliably separates misuse from use.
Troubleshooting
Warning: Wirespeed Cannot List Projects
The credentials are missing Browser (roles/browser) on the organization,
or the Cloud Resource Manager API is disabled in the credentials’ project.
Grant the role at the organization level, then wait for the next permission
check.
Warning: Wirespeed Cannot Read Cloud Logging
The credentials are missing Logs Viewer (roles/logging.viewer) on the
organization, or the Cloud Logging API is disabled in the credentials’ project.
Grant the role at the organization level, then wait for the next permission
check.
Quota Exceeded
A429 error means the 60-requests-per-minute log read quota was used up,
often by other tools reading logs with the same project’s credentials. Wirespeed
retries the same window on the next poll, so no logs are skipped.
