Skip to Content
Engineering11 Documentation πŸ”₯

Audit Service

Simple event logging for audit trails.

On This Page

What It Does

The Audit Service provides a straightforward way to record events. Services can log actions with an event type, optional user ID, and a flexible data payload. By default, events are recorded to BigQuery. Once in BigQuery, audit logs become fully queryable using standard SQL.

Key Capabilities

CapabilityDescription
Event LoggingRecord events with a type, optional user ID, and custom JSON payload
Flexible PayloadAttach any structured data to log entries via the generic additionalData field
Async ProcessingLogs are processed via Cloud Tasks to avoid blocking your services
BigQuery StorageBy default, logs are stored in BigQuery, partitioned by month

How It Fits Together

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Your Services β”‚ β”‚ (call AuditLogService.log()) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Cloud Tasks β”‚ β”‚ (async processing) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Event Storage β”‚ β”‚ (BigQuery by default) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Common Use Cases

  • Compliance logging: Record user actions that need an audit trail
  • Event tracking: Log significant events for later analysis
  • Debugging context: Capture contextual data to help investigate issues

What You Don’t Have to Build

  • Event logging infrastructure
  • BigQuery integration
  • Async processing with Cloud Tasks
  • JSON payload storage
  • Monthly partitioning
  • Audit trail querying

Technical Details

The Audit Service is straightforward - it provides simple event logging without heavy-lifting features. All events are logged asynchronously to prevent blocking your services.


πŸ€– This documentation was generated using AI and human-proofed for accuracy.

Last updated on