Enable Gmail Logs in BigQuery
The following procedure guides you through enabling logs for Gmail in BigQuery to make the most use of Expel Managed Phishing. For example, you can then run an Investigative Action that identifies recipients of malicious emails.
Sign in to the Google Admin Console.
Navigate to Apps > Google > Workspace > Gmail > Setup > Email Logs in BigQuery.
Select the Enable checkbox and enter a Description, such as "Gmail logs".
Select the project to which the service account belongs.
Enter "gmail_logs_dataset" as the name for the new BigQuery dataset and select SAVE.
From the IAM console in the project where the service account was created, select the pencil icon, then search for and add the BigQuery Job User role to the service account.

Select SAVE.
Navigate to BigQuery in the Google Cloud console.
Find the
gmail_logs_dataset, then open the menu on the right and select Open.

From the dataset details, select EDIT DETAILS.
Change the Default maximum table age to 30 days (Expel's recommendation).
Select SAVE.
Select SHARING > Permissions.

Under New principals, add the service account.
Select the
BigQuery Data Viewerrole.Select SAVE to close the panel.
Last updated
Was this helpful?

