Geoip filter logstash

Hi,
I am trying to show location of users in the Kibana Tile Map. How do i do it using the Geoip filter? Can someone point me to some good resource?
I have ELK stack setup.

Have you read the docs? https://www.elastic.co/guide/en/logstash/current/plugins-filters-geoip.html

I have read the docs.
I am trying to follow this tutorial

But this link is not working:
curl -XPUT 'http://localhost:9200/_template/filebeat?pretty' -d@filebeat-index-template.json

Why not, what does it return?

It's displaying the following message.
Curl: (7) couldn't connect to host

Right, so is ES running?

Yes. ES is running

Can you curl localhost:9200/

I get the same message.

Then how do you know ES is running?

i checked with netstat -nltp
and also service elasticsearch status says elasticsearch is running.

I am not sure what could be causing this issue

Fixed it. It's not suppose to be localhost. So silly of me. Thanks Warkolm!