Elastic search batch insert using curl is not working
curl removed the newlines before the data was sent!
The --data
parameter should be replaced with --data-binary
:
curl -XPOST 'localhost:9200/benchmark/external/_bulk?pretty' \ --data-binary @$DATAFILE