configuring elasticsearch to work with logstash