Configure elasticsearch hosts.