Logstash connectively issue to elasticsearch

Error 400 can be a mapping error.

Please check the Logstash logs setting them to debug or the Elasticsearch logs and share them with us.