
Configure your Google Cloud Service account
Google Cloud Platform general prerequisites
In order to ingest Google Workspace data into your Splunk platform deployment, you must complete the following prerequisites:
- Create a new project in your Google Cloud Platform deployment.
- Create a Google Cloud Service account from the Google Developers Console.
For more information, see Using OAuth 2.0 for Server to Server Applications topic in the Google Identity manual.
Multiple domain support
The Splunk Add-on for Google Workspace allows a Splunk administrator to collect Google Workspace audit events from different domains. This allows a central visibility on customer GWS accounts which needs to be centrally monitored.
In order to use the multiple domain monitoring feature for domains associated with an organization, create a Google Cloud Service account for each domain you want to monitor and then use these service accounts to Configure the Splunk Add-on for Google Workspace.
Asset and Identity framework support
The Splunk Add-on for the Google Workspace lets a Splunk administrator integrate users' identity events to the Asset and Identity (A&I) framework. Splunk Enterprise Security uses an asset and identity system to correlate asset and identity information with events to enrich and provide context to your data. In order to use the A&I framework, installation of the Splunk Enterprise Security is required. For the complete installation guide, see the Install Splunk Enterprise Security in a search head cluster environment topic in the Splunk Enterprise Security manual.
Currently supported through the "Custom event type integration. The following eventtype has been configured in the Splunk Add-on for Google Workspace: gws_users_identity
.
For information on formatting your collected asset or identity data into a lookup file so that it can be processed by Splunk Enterprise Security, see the Format an asset or identity list as a lookup in Splunk Enterprise Security topic in the Splunk Enterprise Security manual.
Google Workspace activity report prerequisites
Perform the following steps to set up Google Workspace credentials on your Google console:
- Navigate to console.cloud.google.com, and log into the Google account where you want to set up your Google Workspace credentials.
- Navigate to APIs and Services > Library.
- Search for the Admin SDK API. Select the Admin SDK API.
- In Admin SDK API, click the Enable button to enable the Admin SDK API.
Making calls to this API lets you view and manage resources such as user, groups, and audit and usage reports of your domain. - Navigate to APIs and Services > Credentials.
- In Credentials, click Create Credentials > Service account.
- In Create service account, perform the following steps:
- Name your service account, and click Create and Continue
- (Optional) Grant your service account access to a project.
- Click Continue.
- (Optional) Grant users access to your service account.
- Click Done.
- In Credentials, navigate to your new service account name, and click on your new service account name.
- In the Service account details page for your new service account, perform the following steps:
- Navigate to the Unique ID, and copy the contents of the Unique ID.
This is also your Client ID
- Navigate to the Keys tab.
- Click Add Key > Create new key.
- Select the JSON key type.
- Click Create.
- Save the key type JSON file to your selected directory.
Your new public/private key pair is generated and downloaded to your machine, and it serves as the only copy of this key. You are responsible for storing it securely.
- Navigate to the Permissions tab.
- Navigate to the user name email address that has Owner permissions. Copy the email address.
- Navigate to the Unique ID, and copy the contents of the Unique ID.
- Navigate to admin.google.com
- Log in to your administrator Google account
- On the Google Admin home page, navigate to Security > API controls.
- In API Controls, navigate to Domain wide delegation, and click Manage Domain Wide Delegation.
- In Manage Domain Wide Delegation, click Add new to add a new client ID.
- In the Add a new client ID window, perform the following steps:
- In the Client ID field, paste the Unique ID that you copied from the Service account details page.
- In the OAuth scopes (comma-delimited) field, add the
https://www.googleapis.com/auth/admin.reports.audit.readonly
scope for the service account. This gives read-only access when retrieving an activity report.
For more information, See the Google Cloud storage APIs & Reference and Getting Endpoints Quickstart documentation. See the Authorize Requests topic in the Google Workspace Admin SDK manual. - Click Authorize.
Gmail headers prerequisites
Perform the following steps to set up Google Workspace credentials on your Google console:
- Navigate to console.cloud.google.com, and log into the Google account where you want to set up your Google Workspace credentials.
- Navigate to APIs and Services > Library.
- Search for the BigQuery API. Select the BigQuery API.
- In BigQuery API, click the Enable button to enable the BigQuery API.
- Navigate to APIs and Services > Credentials.
- In Credentials, click Create Credentials > Service account.
- In Create service account, perform the following steps:
- Name your service account, and click Create and Continue
- (Optional) Grant your service account access to a project.
- Click Continue.
- (Optional) Grant users access to your service account.
- Click Done.
- In Credentials, navigate to your new service account name, and click on your new service account name.
- In the Service account details page for your new service account, perform the following steps:
- Navigate to the Keys tab.
- Click Add Key > Create new key.
- Select the JSON key type.
- Click Create.
- Save the key type JSON file to your selected directory.
Your new public/private key pair is generated and downloaded to your machine, and it serves as the only copy of this key. You are responsible for storing it securely.
- Go back to the "Details" tab and copy the service account email
- Navigate to IAM
- Click Add
- Paste service account email into New principals field
- Click Select a role
- Type BigQuery Job User
- Click on BigQuery Job User
- Click Save
- Navigate to admin.google.com
- Go to Apps > Google Workspace > Gmail
- Click Setup
- Click Email Logs in BigQuery
- Click Enable
- In Select the BigQuery project to use find a Google Cloud project where service account was created
- You can optionally specify a different name of the dataset under Specify the name for a new dataset to be created within your project. Later you can configure this dataset name during the input configuration steps.
- Click Save
- Navigate to console.cloud.google.com
- Search for BigQuery in the search bar and click BigQuery
- On the left side of the screen you should see the Google Cloud project, click on it.
- Click on View actions > Open (three dots) near gmail_logs_dataset. By default, you may see something else depending on the name you chose in the previous step.
- Click on Sharing > Permissions
- Click on Add principal
- Paste service account email into New principals field
- Click Select a role
- Type BigQuery Data Viewer
- Click on BigQuery Data Viewer
- Click Save
Google Workspace user identity report prerequisites
Perform the following steps to set up Google Workspace credentials on your Google console:
- Navigate to console.cloud.google.com, and log into the Google account where you want to set up your Google Workspace credentials.
- Turn on the Directory and enable contact sharing.
- In the Admin console, navigate to Menu, and then Directory, and then Directory settings.
- Click Sharing settings, and then Contact sharing.
- Check the Enable contact sharing box.
- Select which email addresses to include in the Directory:
- Show all email addresses—Show the user's primary email address and any alias addresses.
- Show only secondary and alias email addresses — If a user has either a secondary email address (an address that is outside your domain) or an email alias, show only the secondary and alias addresses, not their primary address.
- Show only email addresses in the user's primary domain — If you have a domain alias, show email addresses in the user's primary domain. Hide addresses from any domain aliases.
- Select which profiles appear in the Directory in Contacts on the web. If you have many domain profiles or external contacts, show only certain types of profiles to find addresses faster and help the Directory load faster.
- Show only domain profiles — Include profiles of internal users (people with addresses in your domains) and exclude any external contacts. Note: This setting still shows domain shared contacts in autocomplete and search.
- Show only domain shared contacts — Include only shared external contacts.
- Show both domain profiles and domain shared contacts — Include internal and shared external contacts.
- Click Save.
Changes can take up to 24 hours. For more information, see the How changes propagate to Google services topic in the Google Workspace Admin Help documentation.
- Navigate to APIs and Services > Library.
- Search for the Admin SDK API.
- Select the Admin SDK API.
- In Admin SDK API, click the Enable button to enable the Admin SDK API.
Making calls to this API lets you view and manage resources such as user, groups, and audit and usage reports of your domain. - Navigate to APIs and Services > Credentials.
- In Credentials, click Create Credentials > Service account.
- In Create service account, perform the following steps:
- Name your service account, and click Create and Continue
- (Optional) Grant your service account access to a project.
- Click Continue.
- (Optional) Grant users access to your service account.
- Click Done.
- In Credentials, navigate to your new service account name, and click on your new service account name.
- In the Service account details page for your new service account, perform the following steps:
- Navigate to the Unique ID, and copy the contents of the Unique ID.
This is also your Client ID
- Navigate to the Keys tab.
- Click Add Key > Create new key.
- Select the JSON key type.
- Click Create.
- Save the key type JSON file to your selected directory.
Your new public/private key pair is generated and downloaded to your machine, and it serves as the only copy of this key. You are responsible for storing it securely.
- Navigate to the Permissions tab.
- Navigate to the user name email address that has Owner permissions. Copy the email address.
- Navigate to the Unique ID, and copy the contents of the Unique ID.
- Navigate to admin.google.com
- Log in to your administrator Google account
- On the Google Admin home page, navigate to Security > API controls.
- In API Controls, navigate to Domain wide delegation, and click Manage Domain Wide Delegation.
- In Manage Domain Wide Delegation, click Add new to add a new client ID.
- In the Add a new client ID window, perform the following steps:
- In the Client ID field, paste the Unique ID that you copied from the Service account details page.
- In the OAuth scopes (comma-delimited) field, add the
https://www.googleapis.com/auth/admin.directory.user.readonly
scope for the service account. This gives read-only access when retrieving the user identity.
For more information, See the Google Cloud storage Directory API: User Accounts and Admin SDK:Directory API documentation. See the Authorize Requests topic in the Google Workspace Admin SDK manual. - Click Authorize.
Google Workspace Alert Center prerequisites
Perform the following steps to set up Google Workspace credentials on your Google console:
- Navigate to console.cloud.google.com, and log into the Google account where you want to set up your Google Workspace credentials.
- Navigate to APIs and Services > Library.
- Search for the Google Workspace Alert Center API. Select the Google Workspace Alert Center API.
- In Google Workspace Alert Center API, click the Enable button to enable the Google Workspace Alert Center API.
Making calls to this API lets you view and manage resources such as user, groups, and audit and usage reports of your domain. - Navigate to APIs and Services > Credentials.
- In Credentials, click Create Credentials > Service account.
- In Create service account, perform the following steps:
- Name your service account, and click Create and Continue
- (Optional) Grant your service account access to a project.
- Click Continue.
- (Optional) Grant users access to your service account.
- Click Done.
- In Credentials, navigate to your new service account name, and click on your new service account name.
- In the Service account details page for your new service account, perform the following steps:
- Navigate to the Unique ID, and copy the contents of the Unique ID.
This is also your Client ID
- Navigate to the Keys tab.
- Click Add Key > Create new key.
- Select the JSON key type.
- Click Create.
- Save the key type JSON file to your selected directory.
Your new public/private key pair is generated and downloaded to your machine, and it serves as the only copy of this key. You are responsible for storing it securely.
- Navigate to the Permissions tab.
- Navigate to the user name email address that has Owner permissions. Copy the email address.
- Navigate to the Unique ID, and copy the contents of the Unique ID.
- Navigate to admin.google.com
- Log in to your administrator Google account
- On the Google Admin home page, navigate to Security > API controls.
- In API Controls, navigate to Domain wide delegation, and click Manage Domain Wide Delegation.
- In Manage Domain Wide Delegation, click Add new to add a new client ID.
- In the Add a new client ID window, perform the following steps:
- In the Client ID field, paste the Unique ID that you copied from the Service account details page.
- In the OAuth scopes (comma-delimited) field, add the
https://www.googleapis.com/auth/apps.alerts
scope for the service account. This gives read-only access when retrieving an activity report.
For more information, See the Google Cloud storage APIs & Reference and Getting Endpoints Quickstart documentation. See the Authorize Requests topic in the Google Workspace Admin SDK manual. - Click Authorize.
PREVIOUS Install the Splunk Add-on for Google Workspace |
NEXT Configure the Splunk Add-on for Google Workspace |
This documentation applies to the following versions of Splunk® Supported Add-ons: released
Feedback submitted, thanks!