SaaS ✓ fields verified against sample logs

Google Workspace Audit Log Fields: Reports API Activity Explained

Published

One JSON activity per audited action in Google Workspace: which application logged it (login, admin, drive…), when, who did it (actor.email) from which address, and one or more events, each with a type, a name and a list of name/value parameters.

Official documentation: Google: Reports API activities resource · Google: Login audit log events · Google: Admin audit log events

Sample record

{"kind":"admin#reports#activities","items":[{"kind":"admin#reports#activity","id":{"time":"2024-01-15T09:00:00Z","uniqueQualifier":"1111111111","applicationName":"login"},"actor":{"email":"[email protected]","profileId":"11111111111111"},"ipAddress":"203.0.113.10","events":[{"type":"login","name":"login_success","parameters":[{"name":"login_type","value":"google_password"},{"name":"is_suspicious","boolValue":false}]}]}

From the LogTriage parser test corpus — synthetic data, no real hosts or users.

Explain this record field by field →

Field reference

Field Type Meaning Why it matters for security
kinde.g. admin#reports#activity string Google: "The type of API resource." API responses use admin#reports#activity for each activity and admin#reports#activities for the list around them. Confirms you are reading Reports API output, not a different export.
id.timee.g. 2024-01-15T09:00:00Z date-time Google: "Time of occurrence of the activity." The timeline field; activities can reach the API hours after they happened, so search a wider window than you need.
id.uniqueQualifiere.g. 1111111111 string Google: "Unique qualifier if multiple events have the same time." Use it with id.time to deduplicate when collecting the same period twice.
id.applicationNamee.g. admin string Google: "Application name to which the event belongs" — login, admin, drive, token and others, each with its own event list. login and admin are the first applications to read in a suspected account takeover; drive and token show what was taken and which apps got access.
actor.emaile.g. [email protected] string Google: "The primary email address of the actor. May be absent if there is no email address associated with the actor." The account that acted; an admin event from a regular user's mailbox is the alarm.
actor.profileIde.g. 11111111111111 string Google: "The unique Google Workspace profile ID of the actor." Stable when an email address is renamed; join on it across months.
ipAddresse.g. 185.220.101.42 IP address Google: "IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical location." The same address behind a suspicious login and an admin change ties the two together.
events.typee.g. USER_SETTINGS string Google: "Type of event" — the service or feature, such as login, account_warning, access or USER_SETTINGS. Group events by type first; one activity can carry several events.
events.namee.g. TURN_OFF_2_STEP_VERIFICATION string Google: "Name of the event. This is the specific name of the activity reported by the API." GRANT_ADMIN_PRIVILEGE, TURN_OFF_2_STEP_VERIFICATION and suspicious_login are the names that matter most for takeover.
events.parameters.namee.g. USER_EMAIL string Google: "The name of the parameter." Parameters are name/value pairs specific to each event. USER_EMAIL on admin events names the account that was changed — often not the actor.
events.parameters.valuee.g. [email protected] string Google: "String value of the parameter." Numbers, booleans and lists use intValue, boolValue and multiValue instead. Read the parameter by name, never by position; the order is not guaranteed.

Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.

What it records

The Google Workspace Reports API returns audit activities, one JSON object per audited action, in the shape Google documents for the activities resource. The id says when (time) and in which application (applicationName: login, admin, drive, token, groups…). The actor says who, by email and profile ID, and ipAddress from where. The events array holds what happened: each event has a type, a name and parameters, name/value pairs whose meaning is listed per application in Google’s event reference pages.

The malicious sample is an administrator account takeover: a login Google flagged as suspicious, then from the same address 2-step verification turned off for another user, and a minute later, from a second address but the same compromised admin account, admin privileges granted to a new account.

Where to get it

  • Admin console → Reporting → Audit and investigation. Per-application log events, filterable and exportable to Sheets or CSV.
  • Reports API. activities.list per application name returns this JSON; the usual route for a SIEM.
  • BigQuery export. Some editions export Workspace logs to BigQuery continuously, beyond the API’s 180 days.
# Event names per actor and address from an API response saved as JSON
jq -r '.items[] | .actor.email as $a | .ipAddress as $ip | .events[] | [$a, ($ip // "-"), .type, .name] | @tsv' activities.json | sort | uniq -c | sort -rn

Parsing pitfalls

  • Events inside activities. One activity can contain several events; count events, not activities.
  • Typed parameters. A parameter has value, boolValue, intValue, multiValue or messageValue depending on its type; read the one present.
  • Per-application vocabularies. Event types and names differ by application, and admin events use upper-case names (GRANT_ADMIN_PRIVILEGE) while login events use lower case (login_success).
  • Missing actor email. Google notes the actor email may be absent, for example for system actions.
  • Delay. Activities arrive with a lag that varies by application.

Detection ideas

  • Admin takeover: GRANT_ADMIN_PRIVILEGE or other privilege grants by an account that just had a suspicious_login, from the same address or a new one — the Workspace admin takeover rule.
  • Security weakened: TURN_OFF_2_STEP_VERIFICATION, recovery address changes, or less secure app access enabled.
  • Mail rules and forwarding: Gmail forwarding or delegation set up for a user who did not ask for it.
  • Data access: bursts of Drive download or sharing to outside domains from an account after a suspicious login.
  • App access: OAuth grants in the token application to unfamiliar apps with broad scopes.

The free browser analyzer reads Reports API exports and runs these checks locally.

Sending Google Workspace to an LLM

One megabyte of this format is about 474,788 tokens on current Claude models and 292,561 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $950 in input tokens alone (prices of 2026-10-24). Estimate your own volume →

Detections and guides for Google Workspace

Frequently Asked Questions

How far back does Google Workspace keep audit logs?
Google states that the maximum time period for audit activity reports in the Reports API is 180 days. For longer retention, export the logs to BigQuery or a SIEM on a schedule, or use your edition's log export features.
Where are suspicious logins in Google Workspace logs?
In the login application. Successful and failed sign-ins are login events (login_success, login_failure); Google's own warnings are account_warning events such as suspicious_login, with parameters naming the affected address and the login type. Read them together with admin events from the same ipAddress.
Why does an admin event name two different users?
actor.email is the administrator who made the change; the USER_EMAIL parameter is the account that was changed. In GRANT_ADMIN_PRIVILEGE the actor gave admin rights to the user in USER_EMAIL — the pattern to look for after a compromise is an actor granting rights to a new or unexpected account.
Does ipAddress show where the user is?
Google warns that the address is the one the user signed in from, which may or may not reflect their physical location. VPNs, proxies and mobile networks move it; use it to tie events together and check reputation, not to place a person.

Analyze a Google Workspace file in your browser

The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.

Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing

How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]