# \[geoip\]\[country\_name\] long value

**URL:** <https://discuss.elastic.co/t/geoip-country-name-long-value/190786>\
**Category:** Logstash\
**Created:** [July 16, 2019, 3:55pm UTC](https://discuss.elastic.co/t/geoip-country-name-long-value/190786 "2019-07-16T15:55:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardwarehacker](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@hardwarehacker](https://discuss.elastic.co/u/hardwarehacker)\
**Post date:** [July 16, 2019, 3:55pm UTC](https://discuss.elastic.co/t/geoip-country-name-long-value/190786/1 "2019-07-16T15:55:12Z")

</div>

Hi,

The field [geoip][country\_name] writes a long value in memcached instead of only the string:

" DMZ1:ET

instead of:

DMZ1

I guess I am addressing it incorrectly. Is there any suggestion out there? Thanks!

\<geoip {  
database =\> "/usr/share/logstash/host/networkzones.mmdb"  
fields =\> ["country\_name"]  
source =\> "host.ip"  
}

memcached {  
hosts =\> ["x.y.x.t:11211"]  
set =\> { "[geoip][country\_name]" =\> "%{host.ip}" }  
}  
/\>

---

<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:** [August 13, 2019, 4:10pm UTC](https://discuss.elastic.co/t/geoip-country-name-long-value/190786/2 "2019-08-13T16:10:15Z")

</div>

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