# Do I have to configure Logstash (to use GeoIP) if I am using a VM?

**URL:** <https://discuss.elastic.co/t/do-i-have-to-configure-logstash-to-use-geoip-if-i-am-using-a-vm/200313>\
**Category:** Logstash\
**Created:** [September 19, 2019, 9:05pm UTC](https://discuss.elastic.co/t/do-i-have-to-configure-logstash-to-use-geoip-if-i-am-using-a-vm/200313 "2019-09-19T21:05:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rosho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rosho/32/51872_2.png) [@Rosho](https://discuss.elastic.co/u/Rosho)\
**Post date:** [September 19, 2019, 9:05pm UTC](https://discuss.elastic.co/t/do-i-have-to-configure-logstash-to-use-geoip-if-i-am-using-a-vm/200313/1 "2019-09-19T21:05:58Z")

</div>

Continuing the discussion from [How does geoIP for private IPaddresses work?](https://discuss.elastic.co/t/how-does-geoip-for-private-ipaddresses-work/199699):

- The idea #1 of correlating IPs is difficult to implement because the public ones change dinamically.

- The idea #2:  
I need the range of IPs: 10.x.x.x and latitude and longitude (I am going to use the ones of this example: [Creating geoip data for internal networks](https://discuss.elastic.co/t/creating-geoip-data-for-internal-networks/729/3)

MACHINE  
I have Kibana 6.8.2 installed in a virtual machine. I have some "static" logs. I call them static because this is a machine for running tests and the logs were inserted for that use. This machine does not receive real-time data.

LOGS  
From january 1 2019 to may 31 2019.  
Logs of a corporate social network: humhub  
In the field "host", there are the private IP addresses which I want to be able to see in a Map (GeoIP).

I have followed this tutorial: [How To Map User Location with GeoIP and ELK (Elasticsearch, Logstash, and Kibana)](https://www.digitalocean.com/community/tutorials/how-to-map-user-location-with-geoip-and-elk-elasticsearch-logstash-and-kibana)

I do not have the: "11-nginx-filter.conf" file. Probably because I am using a VM.  
Do I need to configure Logstash if I am using a VM?

```
filter {
  if [type] == "nginx-access" {
    grok {
      match => { "message" => "%{NGINXACCESS}" 
}
    }
    geoip {
      source => "clientip"
    }
  }

```

}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 17, 2019, 9:10pm UTC](https://discuss.elastic.co/t/do-i-have-to-configure-logstash-to-use-geoip-if-i-am-using-a-vm/200313/2 "2019-10-17T21:10:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
