parse array of elastic hosts