hec
Ingest raw Splunk HEC events
Changed onIngests a raw payload into an events or logs dataset. Each line of a plain-text body becomes one event. Event metadata comes from the host, source, and sourcetype query parameters instead of an envelope.
post/services/collector/raw
Request
- Base URLhttps://hec.{axiom-domain}
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopesingest|create
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
indexstring
The dataset (Splunk index) to ingest into.
sourcetypestring
The sourcetype to attach to every event in the request.
sourcestring
The source to attach to every event in the request.
hoststring
The host to attach to every event in the request.
Request body
string binary required
A JSON payload to ingest as a single event.
Response
The events were accepted.
Example response
{
"text": "Success"
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info