# Geo\_point in logstash

**URL:** <https://discuss.elastic.co/t/geo-point-in-logstash/264240>\
**Category:** Logstash\
**Created:** [February 14, 2021, 9:10am UTC](https://discuss.elastic.co/t/geo-point-in-logstash/264240 "2021-02-14T09:10:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MABN](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MABN](https://discuss.elastic.co/u/MABN)\
**Post date:** [February 14, 2021, 9:10am UTC](https://discuss.elastic.co/t/geo-point-in-logstash/264240/1 "2021-02-14T09:10:47Z")

</div>

Hi  
I used syslog to send log to logstash ( logstash 7.10)  
I used this grok in logstash.conf  
#####################  
geoip {  
source =\> "source.ip"  
target =\> "source.geo"  
}  
geoip {  
source =\> "destination.ip"  
target =\> "destination.geo"  
}

#################################  
But I don't have source/destination.geo.location, Just these fields had been made.

source.geo.continent\_code  
source.geo.country\_code2  
source.geo.country\_code3  
source.geo.country\_name  
source.geo.ip  
source.geo.latitude  
source.geo.location.lat  
source.geo.location.lon  
source.geo.longitude  
source.geo.timezone

How can I create destination.geo.location & source.geo.location

---

<div class="post-metadata">

**Author:** ![MABN](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MABN](https://discuss.elastic.co/u/MABN)\
**Post date:** [February 15, 2021, 9:52am UTC](https://discuss.elastic.co/t/geo-point-in-logstash/264240/2 "2021-02-15T09:52:48Z")

</div>

Please Help me

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 15, 2021, 7:05pm UTC](https://discuss.elastic.co/t/geo-point-in-logstash/264240/3 "2021-02-15T19:05:45Z")

</div>

Hi @MABN

Can you run the following on the index with the results please

`GET /your-index`

And post the results so we can see your mappings. Please format the results with the `</>` button.

Most likely you do not have the proper mapping which you should create before you attempt to index.

---

<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:** [March 15, 2021, 7:06pm UTC](https://discuss.elastic.co/t/geo-point-in-logstash/264240/4 "2021-03-15T19:06:42Z")

</div>

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