get elasticsearch from env