Audit Log Schema
Golf Gateway generates structured audit logs for all MCP traffic, authentication events, and security analysis. This reference documents the complete schema used for audit log entries.Quick Reference
Schema Overview
View Complete Schema Example
View Complete Schema Example
Core Fields
These fields are present on every audit log entry.Event Types
Component Values
Session and Identity
Integrity Fields
These fields provide tamper-proof audit logging through cryptographic hash chaining.The integrity chain allows verification that no log entries have been modified or deleted. Configure the hash key with
GOLF_SECURITY_INTEGRITY_KEY.Client Info
Information about the MCP client, extracted from theinitialize request.
Example:
Authentication
Authentication and authorization results.
Example:
Security
Access control, rate limiting, replay protection, and PII scrubbing results.PII Scrubbing Fields
Example (request blocked by rate limit):
Request
Request context information.Upstream
Information about the upstream MCP server.
Example:
User
User identity information.MCP Protocol Fields
Extracted Fields
These fields are extracted from MCP messages for efficient querying and aggregation.Raw Payloads
Token Estimates
Error Detection
Elicitation Fields
Fields for server-initiated user input requests (MCP elicitation).Session Statistics
Aggregate session statistics (for monitoring events).Internal Fields
These fields are present in audit log entries for internal processing but are excluded from external exports and the GraphQL API.Complete Example
MCP Request Event:Export Destinations
Audit logs are exported to configured destinations with automatic schema mapping:Each destination applies field-specific transformations. For example, Elasticsearch uses daily indices while Sentinel transforms fields to PascalCase for KQL compatibility.
Related Documentation
Environment Variables
Configure Golf Gateway using environment variables
YAML Configuration
Distributed mode configuration for GitOps deployments
Export to Elasticsearch
Set up audit log export to Elasticsearch
Export to Sentinel
Set up audit log export to Microsoft Sentinel