Bulk upload from s3 url


I want to do bulk uploading from a s3 url using curl command .

I am using the following command but it is not working.

curl -XPOST localhost:9200/_bulk/{"index": {"_source": "https://s3.amazaws.cm/xxxxxxx/xxxxxxxxxxxx/data.json"}}

Is there any command or any other way to do this.

Thank you


You could look at https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html