Elasticsearch node

Hello, could you help me?
I want to send data to Elasticsearch Cloud, but the only node I was able to connect to is "node-red-contrib-elastic" (node-red-contrib-elastic (node) - Node-RED) because it uses server ID (cluster), username and password, however the data in JSON format does not leave the "inject" node. If I modify inject to output msg.body and msg.payload, it emits an error "Error: Invalid body in settings". What am I doing wrong.


Does not connect to the cluster: If I use nodes from "node-red-contrib-elasticsearch-jd" (node-red-contrib-elasticsearch-jd (node) - Node-RED ), how do I connect to the cluster if I don't have ID, user and password option?