Set host and index for elasticsearch from config file