How to enable remote publish on Elasticsearch 5.2 Installation?

@dadoonet Yes, it's a typo.

In which file should I put this setting in?

Logstash is installed on another server so in output conf I'll have to give Elasticsearch server's IP address like below, right?

hosts =>  ["ES_IP:9200"]

BTW Elasticsearch status is yellow. I have gone through documentations and tutorials but I couldn't find anything to make that status green.