Connection from socket to elasticsearch established