Ingest events into Splunk using the HTTP Event Collector (HEC)

domain: docs.splunk.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable HEC in Splunk Web under Settings > Data Inputs > HTTP Event Collector and create a new token, selecting a default index and source type
  2. Send events via POST to 'https://<splunk_host>:8088/services/collector/event' with 'Authorization: Splunk YOUR_HEC_TOKEN' header and Content-Type: application/json
  3. Construct the JSON body as '{"time": <epoch_float>, "host": "myhost", "source": "myapp", "sourcetype": "_json", "index": "main", "event": {"key": "value"}}' where 'event' contains the actual log or metric payload
  4. For batch ingestion concatenate multiple JSON event objects (not a JSON array) in one request body, each on its own line or separated without commas, to the same endpoint
  5. Verify ingestion by searching 'index=main source=myapp' in Splunk Search and confirm the HEC token's request count in the monitoring console

Known gotchas

Related routes

Configure Splunk HEC ingestion and send log events
docs.splunk.com · 6 steps · unrated
Ingest a batch of server-side events into mParticle using the Events API batch endpoint
docs.mparticle.com · 5 steps · unrated
Automate Splunk saved searches and alert actions via the REST API
docs.splunk.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans