# Mapping filebeat index to geo-point

**URL:** <https://discuss.elastic.co/t/mapping-filebeat-index-to-geo-point/95969>\
**Category:** Logstash\
**Created:** [August 5, 2017, 8:48am UTC](https://discuss.elastic.co/t/mapping-filebeat-index-to-geo-point/95969 "2017-08-05T08:48:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 5, 2017, 8:48am UTC](https://discuss.elastic.co/t/mapping-filebeat-index-to-geo-point/95969/1 "2017-08-05T08:48:35Z")

</div>

I used this mapping to my filebeat index template

PUT /filebeat-\*/?pretty  
{  
"mappings": {  
"syslog": {  
"properties": {  
"geoip.location": {  
"type": "geo\_point"  
}  
}  
}  
}  
}

and i got this error  
{  
"error": {  
"root\_cause": [  
{  
"type": "invalid\_index\_name\_exception",  
"reason": "Invalid index name [filebeat-_], must not contain the following characters [, ", , \, \<, |, ,, \>, /, ?]",  
"index\_uuid": "na",  
"index": "filebeat-"  
}  
],  
"type": "invalid\_index\_name\_exception",  
"reason": "Invalid index name [filebeat-_], must not contain the following characters [, ", _, \, \<, |, ,, \>, /, ?]",  
"index\_uuid": "na",  
"index": "filebeat-_"  
},  
"status": 400  
}

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 5, 2017, 8:49am UTC](https://discuss.elastic.co/t/mapping-filebeat-index-to-geo-point/95969/2 "2017-08-05T08:49:11Z")

</div>

i need to set this mapping for my Filebeat index pattern

---

<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:** [August 5, 2017, 8:50am UTC](https://discuss.elastic.co/t/mapping-filebeat-index-to-geo-point/95969/3 "2017-08-05T08:50:27Z")

</div>

I think you want to put that as a template, not an index mapping - [https://www.elastic.co/guide/en/elasticsearch/reference/5.5/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/indices-templates.html)

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 5, 2017, 8:59am UTC](https://discuss.elastic.co/t/mapping-filebeat-index-to-geo-point/95969/4 "2017-08-05T08:59:42Z")

</div>

Thank you so much @warkolm ,Really it was helpfull

---

<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:** [September 2, 2017, 8:59am UTC](https://discuss.elastic.co/t/mapping-filebeat-index-to-geo-point/95969/5 "2017-09-02T08:59:49Z")

</div>

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