跳至正文

Google Gmail Logs Integration

Overview

Google Gmail provides email services with comprehensive admin and security logs available through Google Workspace. KYRA MDR collects Gmail log events via the Reports API for email security monitoring. Requires Google Workspace Business or Enterprise.

Prerequisites

  • A KYRA MDR Collector installed and running
  • Google Workspace account with Super Admin role
  • Service account with domain-wide delegation
  • Reports API enabled in Google Cloud Console

Configuration

Configure Google Workspace Gmail log collection:

  1. Create a service account in Google Cloud Console
  2. Enable domain-wide delegation
  3. In Google Workspace Admin > Security > API Controls > Domain-wide Delegation, add the service account with scope:
    • https://www.googleapis.com/auth/admin.reports.audit.readonly
  4. Configure the KYRA MDR collector:
collector-config.yaml
sources:
- type: gmail
service_account_file: /path/to/service-account.json
delegated_admin: admin@yourdomain.com
poll_interval: 300s
  1. Restart the collector service

Collected Log Types

Log TypeDescriptionSecurity Use
LoginGmail authentication eventsAccess monitoring, brute force
Email SentOutbound email eventsData exfiltration monitoring
Email ReceivedInbound email eventsPhishing detection
Spam/PhishingFlagged email eventsThreat detection
DLPData loss prevention matchesSensitive data protection
AdminGmail admin setting changesSecurity policy monitoring

Troubleshooting

No log data: Gmail logs require Google Workspace Business or Enterprise.

Service account errors: Ensure domain-wide delegation is properly configured with the correct scopes.

Data availability: Gmail log data may have a delay of several hours.

Contact kyra@seekerslab.com for support.