@Nifi_Al Its hard to guess here without seeing your flow, but i think here are a few ideas to resolve:
Use GenerateFlowFIle with content of the json you want to send to PutElasticsearchHttp
Use AttributesToJson to write attribute to content of flowfile, then send that to PutElasticsearchHttp
To test basic connectivity, i would use the first method, then build a working flow from there. I always work in small operational samples when trying to figure out how to configure a certain processor.