Google Workspace

Download 227
Last updated Nov 12, 2026

4. Logpresso Setup

Step 1: Install the App

Install the Google Workspace app by referring to Install an app.

Caution
When upgrading from an earlier version to 1.9.2610.0 or later, disable all Google Workspace loggers before upgrading, and enable them again after the upgrade. Upgrading while loggers are running may stop them with an error. If they have already stopped, disable and enable them again. Loggers resume from the last collection point, so no logs are lost.

Step 2: Add a Connect Profile

Referring to Add a connect profile, add a connect profile for your authentication method in System > Connect Profiles. To collect only Alert Center with the service account method, create profiles for both methods.

Service Account

Connect profile settings

ItemRequiredValue
NameRequiredA name to identify the connect profile
IdentifierRequiredThe identifier used in queries and loggers (e.g., gws_sa)
TypeRequiredGoogle Workspace
Customer IDOptionalUsed only by the domain, user, and group query commands. If left empty, the organization of the delegated user is used
Delegated UserRequiredEmail of the dedicated integration account assigned the admin role
Service keyRequiredFull content of the service account JSON key file
HTTP ProxyOptionalIP:PORT when connecting through a proxy

To specify the Customer ID, find it in Account > Account settings in the Admin console.

For Delegated User, enter the email of the dedicated integration account created in Step 1 of 2. Google Workspace Preparation.

User Account OAuth

  1. Write the JSON to put in Service key. Do not use the client JSON file downloaded from Google Cloud; its format is different.

    {
      "type": "authorized_user",
      "client_id": "OAuth client ID",
      "client_secret": "OAuth client secret",
      "refresh_token": "Refresh token"
    }
    
    KeyValue
    client_id, client_secretClient ID and client secret of the OAuth client created in Step 2 of 3-2. User Account OAuth. Not the client ID of the service account
    refresh_tokenRefresh token issued in Step 3 of 3-2. User Account OAuth (starts with 1//)
  2. Enter the following.

    Connect profile settings

    ItemValue
    Name, Identifiere.g., gws_oauth
    TypeGoogle Workspace
    Customer IDLeave empty (the organization of the consenting account is used)
    Delegated UserLeave empty (not used with the OAuth method)
    Service keyThe JSON written above. It is masked after saving, so keep the original separately
Note
In versions earlier than 1.9.2610.0, Customer ID and Delegated User are required, so enter any value (e.g., dummy).

Step 3: Add Loggers

Add the loggers you need by referring to Add a logger. Table names must start with the prefixes below to appear in the app's datasets and dashboards.

Logger modelTable name (prefix)
Google Workspace Admin ActivityGOOGLE_ADMIN
Google Workspace LoginGOOGLE_LOGIN
Google Drive ActivityGOOGLE_DRIVE
Google Gmail ActivityGOOGLE_GMAIL
Google Meet ActivityGOOGLE_MEET
Google Chat ActivityGOOGLE_CHAT
Google Workspace Alert CenterGOOGLE_ALERT

Common settings for all loggers are as follows.

ItemValue
NameA name to identify the logger
Interval60 seconds or more recommended
Storage node / Collection nodeNodes that match your Logpresso platform configuration
Logger modelA logger model from the table above
TableA name starting with the prefix in the table above
Connect profileIdentifier of the connect profile created above. Use the service account profile for the Alert Center logger

Logger settings example - Google Workspace Admin Activity

Additional Settings for the Gmail Logger

In addition to the common settings, the Google Gmail Activity logger has the following settings.

Gmail logger basic settings Gmail logger options

ItemValue
Scan DaysNumber of days to go back on the first collection. 1 to 180, default 180. Google keeps Gmail logs for 180 days
Include Event RawIf true, the raw Google API response is also stored in the line field. Default false
Exclude Mail Event TypesComma-separated mail event types not to collect (e.g., DRAFT_SAVED,UNKNOWN). Leave empty to collect all

For mail event type names, see the Google Gmail Activity log schema. To reduce the volume, these two types are commonly excluded.

  • DRAFT_SAVED: recorded each time a draft is auto-saved while composing.
  • UNKNOWN: mail delivery stage records, about half of all events. Bounces are recorded only as this type, so do not exclude it if you need to track bounces.

If a logger or query command fails, see Troubleshooting.