# Logstash grok/mutate question

**URL:** https://discuss.elastic.co/t/logstash-grok-mutate-question/164200
**Category:** Logstash
**Created:** [January 14, 2019, 9:21pm UTC](https://discuss.elastic.co/t/logstash-grok-mutate-question/164200 "2019-01-14T21:21:43Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [January 14, 2019, 9:53pm UTC](https://discuss.elastic.co/t/logstash-grok-mutate-question/164200/2 "2019-01-14T21:53:35Z")

</div>

You can use mutate

```
 mutate{
     rename=>["latitude","location[lat]"]
     rename=>["longitude","location[lon]"]
 }

```

The harder part is making sure your index template establishes a mapping that causes location to be a geo\_point. [This](https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199/4?u=badger) thread might help you with that.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-grok-mutate-question/164200)._
