Splunk HEC

Send reporting events and projected metrics through the Splunk HTTP Event Collector event endpoint.

Reporting

Realtime reporting

Choose the built-in sink page that matches the observability stack your team already uses. Each tab below opens a dedicated page instead of swapping content in place.

When To Use Splunk HEC

Use Splunk when your team already searches and alerts on HEC event streams and wants both reporting events and projected metrics exported 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 both reporting events and projected metrics exported through the Splunk HEC event endpoint.

Switch between C#, Java, Python, TypeScript, and JavaScript to see the native SDK shape for this sample.

Licensing note: every runnable sample requires a valid runner key via WithRunnerKey("...") or config key LoadStrike:RunnerKey.

HTML reports include an icon-only Light/Dark theme toggle fixed at the top-right. Default report theme is Light.

Splunk HEC Sink

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();

Splunk HEC setup checklist

Config path

LoadStrike:ReportingSinks:Splunk

Common options

BaseUrl, Token, Source, Sourcetype, Index, and StaticFields.

Best fit

Teams already querying Splunk HEC event streams and wanting both event and metric projections from the same LoadStrike run.

Final export

Final metric snapshots and run-result metadata are included together with the sink event stream.

{
  "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 bind sink settings from infra config.

Splunk template JSON

Ready-to-edit infra-config template for SplunkReportingSink.

Download file

Observability asset guide

Combined guide for sink templates and Grafana starter assets.

Download file