Splunk Integration
This page explains how to:
Stream GPT Driver test execution events into Splunk in real time.
Map GPT Driver payload fields to Splunk event metadata.
Good to Know
Uses Splunk HTTP Event Collector (HEC) over HTTPS. Tokens are validated and stored only in memory.
Payloads are batched per suite (≤ 512 KB or 100 events) with up to 3 retry attempts.
Export Setup
Enable HEC in Splunk Navigate to:
Settings → Data Inputs → HTTP Event Collector → New Token
Note your HEC URL and Token Example:
https://splunk.acme.com:8088/services/collector
Token:41159b4e‑...
Configure GPT Driver Go to:
Settings → Integrations → Splunk
Paste the HEC URL and Token
Optionally set:
index
(default:main
)sourcetype
(default:gptdriver:test
)
Click Test Connection A health-check event should appear in Splunk within a few seconds.
Save Settings Every completed suite will now stream automatically.
Sample Event Payload
{
"time": 1716538203,
"host": "gptdriver",
"sourcetype": "gptdriver:test",
"event": {
"suiteId": "99a7a26d1c914f77916f35ca76291d82",
"total": 12,
"passed": 10,
"failed": 1,
"blocked": 1,
"durationMs": 278543,
"tags": ["smoke", "android"],
"meta": {
"branch": "develop",
"gitSha": "8c0c5e3"
},
"tests": [
{
"id": "te_B4",
"title": "Login with invalid password",
"status": "failed",
"duration": 85,
"recording": "...",
"reason": "error toast not shown"
}
]
}
}
Field Mapping
test.id
event.tests[].id
test.status
event.tests[].status
meta.branch
event.meta.branch
meta.gitSha
event.meta.gitSha
Verifying Ingestion
In Splunk Search, try:
splCopyEditindex=mobile_tests sourcetype=gptdriver:test suiteId=...
| timechart count by status
Other useful queries:
Show failed tests:
splCopyEditindex=mobile_tests status=failed | table suiteId, test.id, test.title, reason
Filter by branch or tag:
splCopyEditindex=mobile_tests meta.branch=develop tags=smoke
Last updated