I developed a powershell script to send message in bulk to Elastiseach using the Invoke-RestMethod command.
When I send a bulk request directly to Elasticsearch, I can see the properties of my json object stored in the source field.
However, when I use logstash in the middle, the json object gets stored in the message field as string.
I`ve already read this discussing here, but I am still confused.
How I can send bulk messages through Logstash so that they I will get correctly store on ElasticSearch?
Thank for you help