Splunk HTTP Event Collector: Fast, Secure Ingestion Without Forwarders
Learn how to set up Splunk’s HTTP Event Collector for real‑time, secure data ingestion without forwarders, plus best‑practice tips on token security, license monitoring, and performance tuning.
16 Jul 2026, 17:43 UTC

Why Bypass Forwarders When You Can Use HEC?
In many Splunk deployments, data arrives through heavy forwarders that ship logs to indexers. While forwarders provide reliability and field extraction, they add agent overhead and introduce latency. The HTTP Event Collector (HEC) lets you push structured events directly to an indexer over HTTPS, cutting out the forwarder layer.
What Is HEC and When Is It Useful?
HEC is a built‑in Splunk service that listens on a configurable port (default 8088). It accepts JSON, raw text, or binary payloads and writes them straight into the Splunk indexer’s ingest pipeline. Typical use cases include:
- IoT devices or microservices that can emit events over HTTP.
- Real‑time monitoring dashboards that need low‑latency data.
- Systems without the ability to run a Splunk forwarder.
Setting Up HEC: Step‑by‑Step
- Enable the Receiver
Run the following from the indexer’s command line (root or user withsplunk enable boot-startprivileges):
This starts the HEC service on port 8088.splunk enable http-event-collector - Create a Token
Navigate toSettings > Data Inputs > HTTP Event Collectorin Splunk Web, clickNew Token, and name it. Specify the target index and set the token’s expiration. The token is a 64‑character string used for authentication. - Configure TLS
HEC uses HTTPS by default. If you want to use a custom certificate, upload it viaSettings > Server Settings > SSL Certificatesor use the CLI:splunk set sslcert --cert /path/to/cert.pem --key /path/to/key.pem - Verify the Token Works
From any machine that can reach the indexer, run:
Replacecurl -k \ -H "Authorization: Splunk <token>" \ -d '{"event":"test"}' \ https://<indexer-host>:8088/services/collector<token>with the token string, and<indexer-host>with the FQDN or IP. A successful response looks like{"text":"Success","code":0,"message":"ok"}. - Check Ingestion
Open the Search app, queryindex=<your-index> event="test". The event should appear within seconds.
Trade‑Offs and Practical Limits
- No Automatic Field Extraction
HEC passes raw events into the indexer. If you need fields extracted, you must define props.conf or use thehostandsourceparameters in the HEC payload. - License Usage
All data ingested via HEC consumes from the same license pool as forwarder traffic. MonitorLicense Usagein Splunk Web to avoid hitting limits. - Back‑Pressure on High Volume
If you send millions of events per second, the receiver threads may saturate. Tunereceiver_threadsinserver.confand monitor$SPLUNK_HOME/var/run/splunk/receiver.logfor queue size warnings. - Security of Tokens
Tokens are highly privileged. Store them in a vault, rotate regularly, and avoid embedding them in source code.
Actionable Checklist for Engineers
- Enable HEC on the indexer and create a dedicated token for each service or application.
- Use HTTPS with a trusted certificate to protect data in transit.
- Configure proper indexing and field extraction rules in
props.confif needed. - Set up alerts for
receiver_queue_sizeand license usage. - Implement token rotation policies and store tokens securely.
- Document the HEC endpoints and token usage for future maintenance.
By following these steps, teams can ingest data faster, reduce forwarder overhead, and maintain a secure, auditable pipeline. Just remember that HEC is a powerful tool—use it wisely, monitor its impact, and keep your tokens safe.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.