Help including host name in httpjson post request from UI

I am configuring an HTTPJSON Input from Fleet using the UI and doing a POST on a REST endpoint. I need to send a body in the request. If I hard code the body as json {'hostname': 'currenthostname'} with a host name it works fine, what I need to know is how I substitute the host name of the agent into the post body in place of a hardcoded host name.
I have tried [[host.hostname]] or [[agent.host]] but nothing seems to work. I think I just need to know the correct syntax to substitute the host name in the request body but I can't find anything that show the correct format.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.