Splunk HEC

Use the Splunk HEC sink when you want LoadStrike reporting events and projected metrics delivered through Splunk.

What this page helps you do

What this page helps you do

Use the Splunk HEC sink when you want LoadStrike reporting events and projected metrics delivered through Splunk.

Who this is for

Teams exporting final run data and realtime metrics into supported observability backends.

Prerequisites

  • A run result or sink destination you want to wire into the wider observability stack

By the end

A sink-specific setup path that stays tied to the same LoadStrike report model.

Use this page when

Use this page when the local report is not the only destination and you need to wire realtime or final export into a supported sink.

Visual guide

Annotated report diagram showing summary, scenario views, and failure analysis.
The same run result powers summary reading, failure diagnosis, grouped correlation, and export flows.

Sample Report Data Rows

Scope    Scenario     Result Count RPS  LatencyP50Ms LatencyP80Ms LatencyP85Ms LatencyP90Ms LatencyP95Ms LatencyP99Ms
Scenario reports-demo OK     675   15.0 21.4         30.2         33.0         36.8         48.6         72.1

LatencyTable Scenario     Result Count LatencyP50Ms LatencyP95Ms
LatencyTable reports-demo OK     675   21.4         48.6
LatencyTable reports-demo FAIL   12    35.9         79.2

StatusCode Result Percent
200        OK     97.48
500        FAIL   2.52

FailedStatus Scope     Scenario     Step StatusCode Count Percent
FailedStatus Scenario  reports-demo      500       12    1.75

Reporting

Realtime reporting

Choose the built-in sink page that matches the backend your team already runs, or open Custom Reporting when you need to implement your own destination. Each tab opens a dedicated page with the settings, behavior, and lifecycle details for that reporting path.

Guide

When To Use Splunk HEC

Choose Splunk when the team already searches and alerts on HEC event streams and wants both reporting events and projected metrics from the same LoadStrike run.

What LoadStrike Sends

SplunkReportingSink sends both reporting events and metric projections through the Splunk HEC event endpoint. Final export also includes final metric snapshots plus run-result metadata in the same sink flow.

Configuration Surface

Configure the sink in code or through LoadStrike:ReportingSinks:Splunk. Common options include BaseUrl, Token, Source, Sourcetype, Index, and StaticFields.

Downloads

Splunk setup is supported through the downloadable JSON infra-config template and the shared observability asset guide.

Splunk HEC realtime reporting

Use SplunkReportingSink when you want reporting events and projected metrics sent through the Splunk HEC event endpoint.

If you run these examples locally, add a valid runner key before execution starts. Set it with WithRunnerKey("...") or the config key LoadStrike:RunnerKey.

HTML reports also include the top-right Light/Dark theme toggle. Light is the default report theme.

Splunk HEC Sink

using LoadStrike;

var splunkSink = new SplunkReportingSink(new SplunkReportingSinkOptions
{
    BaseUrl = "https://splunk.example.com",
    Token = "splunk-hec-token",
    Source = "loadstrike",
    Sourcetype = "_json",
    Index = "observability",
    StaticFields =
    {
        ["environment"] = "preprod",
        ["service"] = "checkout"
    }
});

LoadStrikeRunner.RegisterScenarios(scenario)
    .WithReportingSinks(splunkSink)
    .WithRunnerKey("rkl_your_local_runner_key")
    .Run();

SplunkReportingSinkOptions fields

ConfigurationSectionPath

Defaults to LoadStrike:ReportingSinks:Splunk when binding from infra config.

BaseUrl

Required Splunk base URL.

EventEndpointPath

HEC event endpoint path.

Token

Required HEC token.

Source / Sourcetype / Index / Host

Splunk event metadata attached to exported log and metric envelopes.

TimeoutSeconds

HTTP timeout for Splunk export calls.

StaticFields

Additional fields attached to every Splunk envelope.

{
  "LoadStrike": {
    "ReportingSinks": {
      "Splunk": {
        "BaseUrl": "https://splunk.example.com",
        "Token": "splunk-hec-token",
        "Source": "loadstrike",
        "Sourcetype": "_json",
        "Index": "observability"
      }
    }
  }
}

Downloads and templates

Use the Splunk HEC template when you want to load sink settings from infra config.

Splunk template JSON

A ready-to-edit infra-config template for SplunkReportingSink.

Download file

Observability asset guide

A combined guide for sink templates and Grafana starter assets.

Download file