# Hints for use of Ingest pipeline? To map IP address to Region+City and never store IP address

**URL:** https://discuss.elastic.co/t/hints-for-use-of-ingest-pipeline-to-map-ip-address-to-region-city-and-never-store-ip-address/303712
**Category:** Elasticsearch
**Tags:** ingest-pipeline
**Created:** [May 2, 2022, 7:24am UTC](https://discuss.elastic.co/t/hints-for-use-of-ingest-pipeline-to-map-ip-address-to-region-city-and-never-store-ip-address/303712 "2022-05-02T07:24:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bevaldss](https://avatars.discourse-cdn.com/v4/letter/b/898d66/32.png) [@Bevaldss](https://discuss.elastic.co/u/Bevaldss)
#### Post date: [May 2, 2022, 7:24am UTC](https://discuss.elastic.co/t/hints-for-use-of-ingest-pipeline-to-map-ip-address-to-region-city-and-never-store-ip-address/303712/1 "2022-05-02T07:24:04Z")

</div>

Due to compliance with DPA we cannot store client IP addresses.  
I want to on-the-fly map client IP address to its' Region+City and also at same time make sure the IP address is never stored in any document.  
Looks like I should use Ingestion pipeline and ... hmm ... perhaps then some existing "processors"?  
Anyone done this, or something similar and want to share some hints?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [May 2, 2022, 7:38am UTC](https://discuss.elastic.co/t/hints-for-use-of-ingest-pipeline-to-map-ip-address-to-region-city-and-never-store-ip-address/303712/2 "2022-05-02T07:38:52Z")

</div>

Use the geoip processor and then the remove processor on the ip field.

See [GeoIP processor | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/geoip-processor.html) and [Remove processor | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/remove-processor.html)

hope that helps!

---

<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: [May 30, 2022, 7:38am UTC](https://discuss.elastic.co/t/hints-for-use-of-ingest-pipeline-to-map-ip-address-to-region-city-and-never-store-ip-address/303712/3 "2022-05-30T07:38:57Z")

</div>

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