# Conversion of ip field from string to ip datatype

**URL:** <https://discuss.elastic.co/t/conversion-of-ip-field-from-string-to-ip-datatype/174285>\
**Category:** Elasticsearch\
**Created:** [March 28, 2019, 9:30am UTC](https://discuss.elastic.co/t/conversion-of-ip-field-from-string-to-ip-datatype/174285 "2019-03-28T09:30:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swati123](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Swati123](https://discuss.elastic.co/u/Swati123)\
**Post date:** [March 28, 2019, 9:30am UTC](https://discuss.elastic.co/t/conversion-of-ip-field-from-string-to-ip-datatype/174285/1 "2019-03-28T09:30:16Z")

</div>

Hi All,

I want to convert one date field which is of string to ip type.  
I am trying the same with the convert processor available but it will throw error as  
"ipformat is not supported" and from the document as well I checked the same that ip conversion is not allowed in convert processor.

Can someone suggest how to perform this task.

I want my source\_ip field datatype as ip in the index created.

---

<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:** [April 25, 2019, 9:30am UTC](https://discuss.elastic.co/t/conversion-of-ip-field-from-string-to-ip-datatype/174285/2 "2019-04-25T09:30:32Z")

</div>

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