v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-011189403.1 MB
sources

Add an HEC token and optional metadata to a Splunk HEC Source

Add an HEC token and optional metadata to the specified Splunk HEC Source.

post/system/inputs/{id}/hectoken

Path parameters

idstring required

The <code>id</code> of the Splunk HEC Source.

Request body

allowedIndexesAtTokenstring[]

List of index names that the HEC token is allowed to write to.

descriptionstring

Brief description for the HEC token.

enabledboolean

If <code>true</code>, the HEC token is enabled. Otherwise, <code>false</code>.

tokenstring required

The HEC token value to add to the Splunk HEC Source.

Response

The updated Splunk HEC Source with the new HEC token.

countinteger required

number of items present in the items array