hec
Ingest Splunk HEC events
Changed onIngests one or more Splunk HEC event envelopes, concatenated or newline-delimited, into an events or logs dataset. The dataset comes from the index query parameter, then the first event's index field, then the token's only ingest dataset.
post/services/collector/event
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. Overrides the index field in the event envelope.
Request body
Example request
{
"event": {
"message": "hello from HEC",
"severity": "INFO"
},
"sourcetype": "httpevent"
}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