GPT Driver User Guide
GPT Driver API
GPT Driver API
  • Welcome
  • Basics
    • Upload builds
      • Web UI
      • API
      • CI/CD Examples
        • Github Actions
        • Bitrise
        • GitLab CI
        • CodeMagic
        • Jenkins
        • Circle CI
    • Trigger tests
      • Web UI
      • API
      • API Examples
      • Physical-Device Examples
  • MORE
    • Webhooks
    • Screenshots
    • Meta Data
    • App launch parameters
    • Run existing Appium tests
    • Github Action Step Script
    • TestRail Integration
  • Splunk Integration
Powered by GitBook
On this page
  • Export Setup
  • Sample Event Payload
  • Field Mapping
  • Verifying Ingestion

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

  1. Enable HEC in Splunk Navigate to: Settings → Data Inputs → HTTP Event Collector → New Token

  2. Note your HEC URL and Token Example: https://splunk.acme.com:8088/services/collector Token: 41159b4e‑...

  3. Configure GPT Driver Go to: Settings → Integrations → Splunk

    • Paste the HEC URL and Token

    • Optionally set:

      • index (default: main)

      • sourcetype (default: gptdriver:test)

  4. Click Test Connection A health-check event should appear in Splunk within a few seconds.

  5. 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

GPT Driver Field
Splunk Field

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
PreviousTestRail Integration

Last updated 1 day ago