# Scripted fields to convert IP string to GeoIP?

**URL:** <https://discuss.elastic.co/t/scripted-fields-to-convert-ip-string-to-geoip/217243>\
**Category:** Kibana\
**Created:** [January 30, 2020, 4:40pm UTC](https://discuss.elastic.co/t/scripted-fields-to-convert-ip-string-to-geoip/217243 "2020-01-30T16:40:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Rahul\_Kumar4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_kumar4/32/67369_2.png) [@Rahul\_Kumar4](https://discuss.elastic.co/u/Rahul_Kumar4)\
**Post date:** [January 30, 2020, 10:58pm UTC](https://discuss.elastic.co/t/scripted-fields-to-convert-ip-string-to-geoip/217243/5 "2020-01-30T22:58:25Z")

</div>

This would have been very useful in our use case where we simply have to convert an ip field from string to geo\_point. Reindexing supports using scripts but that too does not allow a geoip look up do, which makes the whole operation a little tedious. Curious to see what Nathan responds with.

If nothing works, we would have to rerun our existing indices through a logstash pipeline and index it back into ES.

---

_[View the full topic](https://discuss.elastic.co/t/scripted-fields-to-convert-ip-string-to-geoip/217243)._
