# Static Lookup Table in Elastic

**URL:** <https://discuss.elastic.co/t/static-lookup-table-in-elastic/319181>\
**Category:** Elasticsearch\
**Tags:** painless, ingest-pipeline\
**Created:** [November 17, 2022, 11:34am UTC](https://discuss.elastic.co/t/static-lookup-table-in-elastic/319181 "2022-11-17T11:34:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesm1](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jamesm1](https://discuss.elastic.co/u/jamesm1)\
**Post date:** [November 17, 2022, 11:34am UTC](https://discuss.elastic.co/t/static-lookup-table-in-elastic/319181/1 "2022-11-17T11:34:09Z")

</div>

Hello - I am wondering if there is a way in which you can store static data in Elastic which can then be referenced by an ingestion pipeline?  
The reason for it is that i want to parse my http.referrer field and then if the value exists within my static table, to then store that data in the assigned column - Otherwise ignore.

I did think about creating an Array, however because i have around 400 rows, i fear that having to do that for EVERY record might create some performance related issues.

Thats my idea - Just not sure if it is possible within Elastic?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 17, 2022, 11:40am UTC](https://discuss.elastic.co/t/static-lookup-table-in-elastic/319181/2 "2022-11-17T11:40:34Z")

</div>

Lookup for how to [enrich your data](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-enriching-data.html) using an [enrich processor](https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-setup.html) in your ingest pipeline.

Check out this [example from the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/match-enrich-policy-type.html).

---

<div class="post-metadata">

**Author:** ![jamesm1](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jamesm1](https://discuss.elastic.co/u/jamesm1)\
**Post date:** [November 17, 2022, 11:49am UTC](https://discuss.elastic.co/t/static-lookup-table-in-elastic/319181/3 "2022-11-17T11:49:40Z")

</div>

Hi - Thank you for the documentation - I have had a read of it, however i am no wiser as to how this could help me - Could you perhaps explain to me how this would help me reach my goal?

---

<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:** [December 15, 2022, 11:50am UTC](https://discuss.elastic.co/t/static-lookup-table-in-elastic/319181/4 "2022-12-15T11:50:07Z")

</div>

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