Notification

Duet AI is now Gemini for Google Workspace. Learn more

Gmail log events

Security investigation tool

Supported editions for the Gmail log events data source in the investigation tool:
Enterprise Plus, Education Plus

As your organization's administrator, you can use the security investigation tool to run searches related to Gmail log events, and to take action based on search results. From the investigation tool, you can view a record of actions to see your organization's user and admin activity in Gmail—for example, when emails are classified as spam, released from quarantine, or sent to admin quarantine. If you have the appropriate privileges in the investigation tool, you can also view the content of a Gmail message as part of an investigation.

You can also conduct a search based on Gmail log events, and then use the investigation tool to take action—for example, to delete specific messages, mark messages as spam or phishing, send messages to quarantine, or send messages to users' inboxes.

Your access to the security investigation tool

  • The security investigation tool requires a premium Google Workspace edition (Enterprise Plus, Enterprise Standard, or Education Plus).
  • You can access logs using the Chrome browser for the Google apps you have installed. For example, Gmail.
  • Your ability to run a search in the investigation tool depends on your Google edition, your administrative privileges, and the data source. If you're unable to run a search in the investigation tool for a specific data source, you can use the audit and investigation page instead. 
  • You can run a search in the investigation tool on all users, regardless of the Google edition they have.

Run a search for Gmail log events

To run a search in the investigation tool, first choose a data source. You then need to choose one or more conditions for your search. For each condition, choose an attribute, an operator, and a value

  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. In the Admin console, go to Menu and then Securityand thenSecurity centerand thenInvestigation tool.
  3. Click Data source and select Gmail log events.
  4. Click Add Condition.
    Tip: You can include one or more conditions in your search or customize your search with nested queries. For details, go to Customize your search with nested queries.
  5. Click Attributeand thenselect an option.
    For a complete list of attributes, go to the Attribute descriptions section (later on this page).
  6. Click Containsand thenselect an operator.
  7. Enter a value or select a value from the list.
  8. (Optional) To add more search conditions, repeat steps 4–7.
  9. Click Search.
    You can review the search results from the investigation tool in a table at the bottom of the page.
  10. (Optional) To save your investigation, click Saveand thenenter a title and descriptionand thenclick Save.

Notes

  • In the Condition builder tab, filters are represented as conditions with AND/OR operators. You can also use the Filter tab to include simple parameter and value pairs to filter the search results.
  • If you gave a user a new name, you will not see query results with the user's old name. For example, if you rename OldName@example.com to NewName@example.com, you will not see results for events related to OldName@example.com.

Attribute descriptions

For this data source, you can use the following attributes when searching log event data:

 
Attribute Description
Attachment extension ID of the Chrome browser
Attachment hash SHA256 hash of the attachment
Attachment malware family Malware category, if detected when the message is handled—for example, Content may be harmful, Known malicious program, or Virus/worm
Attachment name Name of the attachment
Date Date and time of the event (displayed in your browser's default time zone)
Delegate Email address of the delegate user who performed the action on the owner's behalf
DKIM domain The domain authenticated with the DKIM (Domain Keys Identified Mail) mechanism
Domain The domain where the action occurred
Event The logged event action, such as Attachment download, Link click, or Send.
From (Envelope) Sender's envelope address
From (Header address) Sender's header address as it appears in the message headers, for example, user@example.com
From (Header name) Sender's header display name as it appears in the message header
Geo location ISO country code based on the relay IP
Has attachment Email includes an attachment
Has delegate Whether or not there was a delegate user who performed the action on the owner's behalf
IP address IP address of the mail client that started or interacted with the message
Link domain Domain(s) extracted from link URLs in the message body
Message ID The unique message ID located in the message header
OAuth project ID Cloud console project ID of the developer who authenticated with OAuth
Owner Owner of the email message. For an inbound message it's the recipient. For an outbound message it's the sender.
Sender domain Domain of the sender
Spam classification Spam classification of the email message—for example, Spam, Malware, Phishing, Suspicious, or Clean (not spam)
Spam classification reason Reason for the message being classified as spam—for example, Blatant spam, Custom rule, Sender reputation, or Suspicious attachment 
SPF domain Domain name used for Sender Policy Framework (SPF) authentication
Subject The email subject line 
Target attachment hash Information about the SHA256 attachment hash if a user interacts with a message's attachment
Target attachment malware family Information about the attachment malware family if users interact with a message's attachment—for example, Content may be harmful, Known malicious program, or Virus/worm
Target attachment name Information about the attachment name if users interact with a message's attachment
Target drive ID Information about the Drive ID if users interact with a message's Drive item
Target link URL Information about the link URL if users interact with a message's link
To (Envelope) Recipient's envelope address
Traffic source Indicates if an email is sent/received internally (within your domain) or externally
Create activity rules & set up alerts

Rules and alert features vary depending on your Google Workspace edition:

Premium editions (Enterprise Plus, Enterprise Standard, or Education Plus)—To help prevent, detect, and remediate security issues efficiently, you can automate actions in the investigation tool and set up alerts by creating activity rules. To set up a rule, set up conditions for the rule, and then specify what actions to perform when the conditions are met. For details and instructions, see Create and manage activity rules.

All other Google Workspace editions—You can set up alerts based on log event data using reporting rules. For instructions, see Create and manage reporting rules.

Take action based on search results

 Requires a premium Google Workspace edition (Enterprise Plus, Enterprise Standard, or Education Plus)

After you run a search in the investigation tool, you can act on your search results. For example, you can run a search based on Gmail log events, and then use the investigation tool to delete specific messages, send messages to quarantine, or send messages to users' inboxes. For more details about actions in the investigation tool, go to Take action based on search results.

 

Was this helpful?

How can we improve it?
true
Start your free 14-day trial today

Professional email, online storage, shared calendars, video meetings and more. Start your free Google Workspace trial today.

Search
Clear search
Close search
Main menu
7269333718342961032
true
Search Help Center
true
true
true
true
true
73010
false
false