# Geoip does not add "city" field

**URL:** <https://discuss.elastic.co/t/geoip-does-not-add-city-field/128080>\
**Category:** Logstash\
**Created:** [April 15, 2018, 3:27pm UTC](https://discuss.elastic.co/t/geoip-does-not-add-city-field/128080 "2018-04-15T15:27:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t03r1cht](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/t03r1cht/32/29810_2.png) [@t03r1cht](https://discuss.elastic.co/u/t03r1cht)\
**Post date:** [April 15, 2018, 3:27pm UTC](https://discuss.elastic.co/t/geoip-does-not-add-city-field/128080/1 "2018-04-15T15:27:50Z")

</div>

I'm using the Logstash Geoip plugin to resolve IP addresses to their geo location. It is working, however, it does not include the city in the result. What am I doing wrong? The output looks like this:

```
  "geoip": {
  "country_name": "United States",
  "continent_code": "NA",
  "longitude": -97.822,
  "country_code2": "US",
  "location": {
    "lat": 37.751,
    "lon": -97.822
  },
  "ip": "8.8.8.8",
  "country_code3": "US",
  "latitude": 37.751
},
```

---

<div class="post-metadata">

**Author:** ![t03r1cht](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/t03r1cht/32/29810_2.png) [@t03r1cht](https://discuss.elastic.co/u/t03r1cht)\
**Post date:** [April 15, 2018, 4:08pm UTC](https://discuss.elastic.co/t/geoip-does-not-add-city-field/128080/2 "2018-04-15T16:08:36Z")

</div>

It seems like it won't give me the city name for 8.8.8.8. However when I'm looking up a german IP address, it seems to be working fine. Is the city lookup somehow restricted to my "german" license?

---

<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 13, 2018, 4:08pm UTC](https://discuss.elastic.co/t/geoip-does-not-add-city-field/128080/3 "2018-05-13T16:08:43Z")

</div>

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