Provisioning of Elasticsearch data source

Can anyone provide an example of provisioning an Elasticsearch datasource? I understand the datasource-specific details are mapped to the json section in the provisioning file, but I haven’t found any documentation on how to map the fields from the datasource plugin UI to the yaml properties. Thanks in advance