add elasticsearch from env variable