Hi,
I have run into the same problem as several other posters on this topic.
It appears that the webhook action is removing the JSON formatting on the search results;
I am using sense to test and I can see that the search result looks like;
"payload": {
"_shards": {
"total": 5,
"failed": 0,
"successful": 5
},
"hits": {
"hits": [],
"total": 0,
"max_score": 0
},
"took": 6,
"timed_out": false,
"aggregations": {
"2": {
"buckets": []
}
}
},
whereas the webhook action looks like;
"body": "{_shards={total=5, failed=0, successful=5}, hits={hits=[], total=0, max_score=0.0}, took=6, timed_out=false, aggregations={2={buckets=[]}}}"
},
where I have used
"body": "{{ctx.payload}}"
The is problematic when trying to feed the results into the http logstash input where the default codec is JSON.
Any suggestions ?