# Kv filter issue

**URL:** <https://discuss.elastic.co/t/kv-filter-issue/155566>\
**Category:** Logstash\
**Created:** [November 6, 2018, 3:10pm UTC](https://discuss.elastic.co/t/kv-filter-issue/155566 "2018-11-06T15:10:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lemon](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@lemon](https://discuss.elastic.co/u/lemon)\
**Post date:** [November 6, 2018, 3:10pm UTC](https://discuss.elastic.co/t/kv-filter-issue/155566/1 "2018-11-06T15:10:01Z")

</div>

Hi, i'm a beginner with logstash. I use ELK via docker on windows. I parse a csv file which contain a field Metadata. I use kv filter to split values and i want to convert the field kv.Geolocation create by the kv filter. My config like this:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/0/d04ac8e809f4d022aa8aac8b8b6f8138017c075f.png)  
The logstash config test is OK but when i start the stack i have an error "logstash exited with code 0" and i can't access logs as the container shutdown automatically.  
Sample of field Metadata

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/7/4762b6e646ec857c6177a6628262749a08f8a09f.png)  
The first filter works fine but kv.Geolocation type is string but i need geo\_point type. I don't know if kv filter is the best to do this. Could you help me please?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 6, 2018, 4:25pm UTC](https://discuss.elastic.co/t/kv-filter-issue/155566/2 "2018-11-06T16:25:30Z")

</div>

`geo_point` can not be cast using a mutate filter as it is not represented in the JSON. You instead need to handle this through mapping in an index template.

---

<div class="post-metadata">

**Author:** ![lemon](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@lemon](https://discuss.elastic.co/u/lemon)\
**Post date:** [November 6, 2018, 4:37pm UTC](https://discuss.elastic.co/t/kv-filter-issue/155566/3 "2018-11-06T16:37:16Z")

</div>

Thank you for your quick response Christian\_Dahlqvist

---

<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:** [December 4, 2018, 4:37pm UTC](https://discuss.elastic.co/t/kv-filter-issue/155566/4 "2018-12-04T16:37:17Z")

</div>

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