Prerequisites
- Golf Gateway deployed and running
- Elasticsearch cluster (self-hosted or Elastic Cloud)
- API key with write permissions - See Create API keys in Elastic documentation
golf-gateway-* indices:
writecreate_indexmanage
Configure Elasticsearch export
- YAML
- Admin Portal
Self-Hosted Elasticsearch:Elastic Cloud:
Index naming
Golf Gateway creates daily indices with the pattern:golf-gateway-2026.01.08
Index mapping
The index mapping is created automatically with these key fields:| Field | Type | Description |
|---|---|---|
timestamp | date | Event timestamp |
event_type | keyword | Event type (request, response, security) |
session_id | keyword | MCP session identifier |
security.threat_score | float | Threat detection score |
security.blocked | boolean | Whether request was blocked |
mcp_method | keyword | MCP method called |
mcp_tool_name | keyword | Tool name (for tool calls) |
Verify export is working
-
Check gateway health:
-
Generate some traffic, then search in Kibana:
Troubleshooting
- Connection refused: Verify Elasticsearch URL and network connectivity
- 401 Unauthorized: Check API key has correct permissions
- Index not created: Verify API key has
create_indexprivilege
Related guides
- Export Logs to OpenTelemetry - OTLP export
- Set Up Metrics and Monitoring - Health monitoring