# Disable geoip

**URL:** <https://discuss.elastic.co/t/disable-geoip/313366>\
**Category:** Elasticsearch\
**Created:** [August 31, 2022, 1:58pm UTC](https://discuss.elastic.co/t/disable-geoip/313366 "2022-08-31T13:58:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_s/32/97631_2.png) [@Jonas\_S](https://discuss.elastic.co/u/Jonas_S)\
**Post date:** [August 31, 2022, 1:58pm UTC](https://discuss.elastic.co/t/disable-geoip/313366/1 "2022-08-31T13:58:13Z")

</div>

Hello,

i have a logstash pipeline creating elasticsearch indices. Everytime a new index is created, geoip fields are already in the mappings. I do not use them and they never get filled with data. How do i stop them from getting added to my indices?

Pipeline config:

```auto
input { 
	jdbc { 
		jdbc_driver_class => "org.firebirdsql.jdbc.FBDriver"
		jdbc_connection_string => "jdbc:firebirdsql://...?encoding=ISO8859_1" 
		jdbc_user => "..." 
		jdbc_password => "..."
		statement_filepath => "...sql"
	}
}

output {
	elasticsearch {
		hosts => ["https://...", "https://...", "https://..."]
		ssl => true
		cacert => "...\elasticsearch-ca.pem"
		index => "logstash-test-%{+YYYY.MM.DD}"
		document_id => "%{persnr}"
		user => "logstash_internal"
		password => "..."
	}
}

```

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/9/99527d13f5cd46c274aff361191f169219ae653b.png)

Using Elastic, Logstash and Kibana 8.2

Best regards,  
Jonas

---

<div class="post-metadata">

**Author:** ![Jonas\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_s/32/97631_2.png) [@Jonas\_S](https://discuss.elastic.co/u/Jonas_S)\
**Post date:** [August 31, 2022, 2:40pm UTC](https://discuss.elastic.co/t/disable-geoip/313366/2 "2022-08-31T14:40:51Z")

</div>

I found the solution myself. For anyone wondering, you need to edit the logstash Index Template:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/6/0658828a89f5b0fd9d26d47e3117200ffce3e06f.png)  
And remove the geoip mappings on this page:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/0/30955e178c3055345f4ae45e4d74d01b656945ea.png)

---

<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 28, 2022, 2:41pm UTC](https://discuss.elastic.co/t/disable-geoip/313366/3 "2022-09-28T14:41:46Z")

</div>

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