This SPL will generate a list of HEC token strings that you could copy pasta straight into an inputs.conf (although testing & validation is always wise).
Useful if you are trying to replicate Splunk Cloud HEC tokens to Heavy Forwarders.
Example output:
[<token title>]
description = <description, (if blank, title)>
disabled = 0
index = index_1
indexes = index_1,index_2
sourcetype = mysourcetype
token = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
useACK = true
allowQueryStringAuth = false
Links: