Overview
A client-mode connector for a curated observability / ITSM slice of the Splunk HTTP Event Collector and search jobs REST API:
Default
BASE_ADDRESS is https://splunk.example.com:8088 (HEC). Topics use itsm/splunk/<object>/<verb>.
Ports: HEC defaults to :8088; management REST (search jobs) defaults to :8089. Keep HEC as primary BASE. For CreateSearchJob / GetSearchResults, point BASE at the management host (or deploy a second connector copy). Splunk Cloud HEC often uses
https://http-inputs-<host>.splunkcloud.com:8088. Do not put a trailing slash on BASE_ADDRESS.Prefer Hub secrets for the HEC token (
Authorization: Splunk …). Search jobs need management Basic or Bearer credentials. Status remains blocked until an authenticated HEC write (or owned-instance smoke) succeeds — public docs probes alone are not enough.Basic Syntax
Events
Auth
HEC token (preferred for event/raw):- Create an HTTP Event Collector token in Splunk Web or via REST.
- Set connector
BASE_ADDRESSto your HEC host (:8088or Cloud ingest URL; no trailing slash). - Pass
hec_tokenon the MQTT request payload so headers resolve:Authorization: Splunk {value.json.hec_token}
- Store the token in Hub secrets /
GET SECRET "SPLUNK_HEC_TOKEN". Never commit real credentials.
WITH USERNAME / WITH PASSWORD GET SECRET "SPLUNK_HEC_TOKEN" and drop Splunk Authorization headers.
Management / search (:8089):
- Point
BASE_ADDRESSat the management port (or a second connector copy). - Use
Authorization: Bearer {value.json.token}or BasicWITH USERNAME/WITH PASSWORD GET SECRET "SPLUNK_PASSWORD".
Example payloads
Health:{payload}). Include channel when indexer acknowledgement is enabled.
Create search job (BASE = management :8089):
Deploy notes
- Deploy
SplunkRestApi.lotonly (-addRoute). Do not deployhub-metadata.lotas a connector — it exists for Hub /-listTemplates(ADD METADATA+WITH IMAGEbase64). - Hub category: REST API Connectors.
- Doc link: https://docs.coreflux.org/latest/lot-language/routes/rest-api-apps/splunk-enterprise-and-cloud

