Increasing http.max_content_length

The answer here is to use a tool like Logstash and process the file line by line instead of sending it to Elasticsearch all at once. Have a look at this introduction to Logstash.