# Logstash to elasticsearch template to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-to-elasticsearch-template-to-elasticsearch/79385>\
**Category:** Logstash\
**Created:** [March 21, 2017, 10:49am UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-template-to-elasticsearch/79385 "2017-03-21T10:49:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [March 21, 2017, 10:49am UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-template-to-elasticsearch/79385/1 "2017-03-21T10:49:50Z")

</div>

I have done geoip

geoip  
{  
database =\> "C:\GeoLiteCity.dat"  
source =\> "sIP"  
target =\> "srcGeoIP"  
}

Tried template

"sourceGeoIP":  
{  
"type": "object",  
"index": "not\_analyzed"  
}

and

"sourceGeoIP":  
{  
"type": "geo\_point",  
"index": "not\_analyzed",  
"ignore\_malformed":true  
}

I keep getting the following error

{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse [srcGeoIP]", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"unknown property [ip]"}}}}, :level=\>:warn}←[0m

One of the objective is make it such that it is possible for kibana to use the ip address to draw on its map

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 21, 2017, 9:38pm UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-template-to-elasticsearch/79385/2 "2017-03-21T21:38:28Z")

</div>

It looks like an invalid value in the field, so it cannot map it to a geopoint.

---

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [March 22, 2017, 3:06am UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-template-to-elasticsearch/79385/3 "2017-03-22T03:06:09Z")

</div>

What I suspect is that sub fields in the srcGeoIP has not mapping at the elasticsearch template side

---

<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 19, 2017, 3:06am UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-template-to-elasticsearch/79385/4 "2017-04-19T03:06:16Z")

</div>

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