# Logstasth 7 cannot create geoip.location

**URL:** https://discuss.elastic.co/t/logstasth-7-cannot-create-geoip-location/178792
**Category:** Logstash
**Created:** [April 28, 2019, 9:49am UTC](https://discuss.elastic.co/t/logstasth-7-cannot-create-geoip-location/178792 "2019-04-28T09:49:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [April 28, 2019, 9:49am UTC](https://discuss.elastic.co/t/logstasth-7-cannot-create-geoip-location/178792/1 "2019-04-28T09:49:56Z")

</div>

Hello,

I am parsing the haproxy logs and I would like to create geoip mapping on all the request IP addresses. I have added the following to the logstash configuration:

```
geoip {
  database => "/etc/logstash/GeoLite2-City.mmdb"
  cache_size => "1024"
  source => "[client][ip]"
  target => "geoip"
}

```

I see the geoip data in the kibana discover tab:

```
"geoip": {
  "country_code3": "US",
  "region_code": "NY",
  "latitude": 40.6301,
  "city_name": "Staten Island",
  "location": {
    "lat": 40.6301,
    "lon": -74.1607
  },
  "longitude": -74.1607,
  "continent_code": "NA",
  "country_name": "United States",
  "dma_code": 501,
  "postal_code": "10303",
  "ip": "162.220.52.196",
  "country_code2": "US",
  "timezone": "America/New_York",
  "region_name": "New York"
},

```

However I am not able to do geoip mapping using the map application or visualization

Any idea how to make this work?

---

<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: [May 26, 2019, 9:50am UTC](https://discuss.elastic.co/t/logstasth-7-cannot-create-geoip-location/178792/2 "2019-05-26T09:50:04Z")

</div>

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