# Adding Custom GeoIP Target To Index Pattern

**URL:** <https://discuss.elastic.co/t/adding-custom-geoip-target-to-index-pattern/131295>\
**Category:** Elasticsearch\
**Created:** [May 10, 2018, 11:27am UTC](https://discuss.elastic.co/t/adding-custom-geoip-target-to-index-pattern/131295 "2018-05-10T11:27:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![F\_Terrie](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@F\_Terrie](https://discuss.elastic.co/u/F_Terrie)\
**Post date:** [May 10, 2018, 11:27am UTC](https://discuss.elastic.co/t/adding-custom-geoip-target-to-index-pattern/131295/1 "2018-05-10T11:27:40Z")

</div>

Hi,

I'm attempting to update the index pattern in Elasticsearch with the target geoip I've set in logstash, which is currently:

```
                         geoip
			{
				source => "Remote"
				target => "RemoteGEOIP"
			}

			geoip
			{
				source => "Local"
				target => "LocalGEOIP"
			}

```

And with my index pattern called logstash-syslog-\*, I'm using the below index template like this being sent within Postman to the index.

> {  
> "RemoteGEOIP" :  
> {  
> "type" : "object",  
> "dynamic": true,  
> "path": "full",  
> "properties" :  
> {  
> "location" : { "type" : "geo\_point" }  
> }  
> }  
> }

I have also tried logstash-syslog-\*/RemoteGEOIP/\_mapping but I keep getting errors relating to sytax with the above. I think I'm messing up the index template but I'm not sure where. Any help be appreciated  
👍

---

<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:** [June 7, 2018, 11:29am UTC](https://discuss.elastic.co/t/adding-custom-geoip-target-to-index-pattern/131295/2 "2018-06-07T11:29:54Z")

</div>

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