Google Workspace 
Anomali supports the ingestion of Google Workspace logs through the Google Workspace Reports API and AWS S3.
Google Workspace API
You can use your existing Google Cloud service account or create a new service account to add a new log source in the Anomali platform.
Onboarding steps
Prerequisites
Your Google user must be authorized to read your organization's activity records. If your user does not have this privilege, follow Google Workspace instructions to create a new role with Reports access and assign the role to your user.
Step 1: Create Google Cloud Project
See Google's guide to Creating and managing projects to learn how you can create a Google Cloud project.
Step 2: Create service account
See Google's guide to Creating a service account.
Step 3: Enable Workspace Admin SDK API
Google Workspace Admin SDK API contains the following APIs:
To enable these APIs:
- Navigate to the APIs Library and select APIs and Services > Library.
-
Search for
Admin SDK APIand select Admin SDK API. -
Click Enable to enable the Admin SDK API.
-
Similarly, search for
Alert Center APIand click Enable to enable the Alert Center API.
Step 4: Create API credentials
-
Navigate to API Credentials > APIs and Services > Credentials.
-
Click Create Credentials > Service Account.
-
Enter a service account name. This also populates a service account ID.
-
(Optional) Enter a service account description.
-
Click Done.
-
From the Service Accounts table, select the service account that was created.
-
Securely save the Unique ID value displayed. This ID will be necessary for Google Workspace .
-
From the Keys menu, click Add Key > Create new key.
-
Select JSON as the key type.
-
Click Create. This saves a JSON file to your local filesystem containing the secure access credentials for this service acount.
Step 5: Delegate domain-wide authority
-
Log in to the Google Admin Console.
-
Navigate to API Controls > Security > Access and data control > API controls.
-
Click Manage Domain Wide Delegation.
-
Click Add new.
-
In the Client ID field, enter the Unique ID from Google Workspace .
-
In the OAuth scopes, enter the following:
-
Click Authorize.
Step 6: Create new role for new or existing user
-
Log in to the Google Admin Console.
-
Click Create New Role.
-
Enter a Name and Description for the role info, then click Continue.
-
From the Services section, select the Reports privilege. Additionally, in the Alert Center section, select View access privilege.
- Click Continue.
- Click Create Role.
- Then, either add a user by clicking Add new user or use an existing user. This page includes the primary email address for the user to sign in.
- Click Assign roles from Admin roles and privileges.
- Select the role you created and toggle the Assigned state switch to assign the role.
- Click Save.
Securely save the email address of this user for Google Workspace .
Step 7: Add Google Workspace as new log source
To add Google Workspace as a new log source on the Anomali platform:
-
Navigate to Search > Log Source Management.
-
Click New to add a new log source.
-
Enter a name for the log source.
-
(Optional) Enter a description for the source type.
-
Select Google Workspace as the log source.
-
Select API as the ingestion method.
-
Provide the Basic Configuration details:
-
Google User: Enter the email address of the Google Workspace user from Google Workspace .
-
GCP Service Account Credentials: Enter the password of the Google service account.
-
-
(Optional) Next to the Basic Configuration section, click on the Advanced Options link to provide additional information about the event log data:
-
Enter one or more parameters that provide additional context about the data. For example, "File format" indicates the format of the event log data being shipped, or "File extension" that indicates the extension of the logs.
-
Enter the corresponding value of the parameter. For example, CSV is a file format. Similarly, ".gzip" is a file extension.
-
-
Click Save to add the log source.
Step 8: Configure permissions
You can set permissions to decide which roles can view, add, or edit log sources. To do so, configure the following parameters:
-
Owner: Select an owner of the view from the list of users. This is the email address of the owner.
-
Type: Select the type of permission assigned to the view:
-
Private: Only the owner has read and write privileges, that is, no other user can access or edit the view.
-
Shared: Allows you to set the read-write privileges for a role that is mapped to different users, granting read-write permissions to all users assigned that role. You can also assign read or write permissions to everyone in your organization.
-
Step 9: Check log source status
Once added, the status of the log source becomes Create Requested. See Log Source Statuses to understand the different types statuses assigned to log sources.
Step 10: Receive confirmation email
You will receive a notification email from Anomali once you have created a new log source request. The Log Source Management page will show the status as Create Requested.
Once the log source has been provisioned and is ready for use, Anomali will send you another email and the Log Source Management page status for the log source will change to Active.
AWS S3
If your logs are already in S3, you can proceed directly to Step 2: Set up SQS queue. If not, Anomali recommends following Step 1: Ship data to S3 using NXLog to use NXLog to first ship the logs to S3. After S3 receives the data, it sends updates to an Amazon SQS queue you designate, enabling Anomali to automatically pull the logs from S3 whenever it receives a new notification from the queue.
Onboarding Steps
Step 1: Ship data to S3 using NXLog
See Using NXLog to Ship Data to set up NXLog to send data into S3.
Step 2: Set up SQS queue
Once your data is in S3, you can send it to Anomali using Amazon SQS. See Setting up Amazon SQS queue for more information.
Step 3: Enable AWS S3 notifications
Enable AWS S3 notifications for Amazon SQS to receive change notifications when you add logs. See Amazon's guide to configuring AWS S3 notification for SQS for more information.
Step 4: Add Google Workspace as new log source
On the Anomali platform, add Google Workspace as a new log source, as follows:
-
Navigate to Search > Log Source Management.
-
Click New to add a new log source.
-
Enter a name for the log source.
-
(Optional) Enter a description for the log source.
-
Select it as the log source.
-
Select AWS S3 as the ingest method.
-
Ensure S3 notification are enabled. See Step 2: Enable AWS S3 notifications for more information.
-
Provide the Basic Configuration details:
-
AWS SQS Queue URL: Enter the URL of your AWS SQS queue. See Setting up Amazon SQS queue for more information.
-
AWS Secret Access Key: Provide the AWS secret access key.
-
AWS Access Key ID: Enter the AWS Access ID.
-
File Selector: Provide the path to the event log data files. Anomali recommends the following practices for the path:
-
-
Sourcetype must be the path prefix, as follows:
<sourcetype>/year=2025/month=04/day=05/path/to/file.
For example:google_workspace/year=2025/month=03/day=22/events/event_data_logs/. -
Sourcetype name must not contain any spaces: For example,
"google_workspace"is correct, however"google workspace"is incorrect.
-
(Optional) Next to the Basic Configuration section, click on the Advanced Options link to provide additional information about the event log data:
- Enter one or more parameters that provide additional context about the data. For example, "File format" indicates the format of the event log data being shipped, or "File extension" that indicates the extension of the logs.
- Enter the corresponding value of the parameter. For example, CSV is a file format. Similarly, ".gzip" is a file extension.
-
Click Save to add the log source.
Step 5: Configure permissions
You can set permissions to decide which roles can view, add, or edit log sources. To do so, configure the following parameters:
-
Owner: Select an owner of the view from the list of users. This is the email address of the owner.
-
Type: Select the type of permission assigned to the view:
-
Private: Only the owner has read and write privileges, that is, no other user can access or edit the view.
-
Shared: Allows you to set the read-write privileges for a role that is mapped to different users, granting read-write permissions to all users assigned that role. You can also assign read or write permissions to everyone in your organization.
-
Step 6: Check log source status
Once added, the status of the log source becomes Create Requested. See Log Source Statuses to understand the different types statuses assigned to log sources.
Step 7: Receive confirmation email
You will receive a notification email from Anomali once you have created a new log source request. The Log Source Management page will show the status as Create Requested.
Once the log source has been provisioned and is ready for use, Anomali will send you another email and the Log Source Management page status for the log source will change to Active.

