# Data enrichment

**URL:** <https://discuss.elastic.co/t/data-enrichment/298099>\
**Category:** Elasticsearch\
**Created:** [February 24, 2022, 12:16am UTC](https://discuss.elastic.co/t/data-enrichment/298099 "2022-02-24T00:16:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyberzlo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyberzlo/32/65490_2.png) [@cyberzlo](https://discuss.elastic.co/u/cyberzlo)\
**Post date:** [February 24, 2022, 12:16am UTC](https://discuss.elastic.co/t/data-enrichment/298099/1 "2022-02-24T00:16:44Z")

</div>

How is best way for data enrichment? I have events with IDs of employees in ES, and want change them on their surname. How do it best way? Should I do it in logstash?

Most helpful would be to change static lookup but I wasnt able to do it by script in ES 7, is this now possible?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 24, 2022, 12:20am UTC](https://discuss.elastic.co/t/data-enrichment/298099/2 "2022-02-24T00:20:03Z")

</div>

[Enrich processor | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-processor.html) is probably what you want.

> [@cyberzlo](#):
>
> Most helpful would be to change static lookup but I wasnt able to do it by script in ES 7, is this now possible?

Can you elaborate more on what you mean here?

---

<div class="post-metadata">

**Author:** ![cyberzlo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyberzlo/32/65490_2.png) [@cyberzlo](https://discuss.elastic.co/u/cyberzlo)\
**Post date:** [February 24, 2022, 12:35am UTC](https://discuss.elastic.co/t/data-enrichment/298099/3 "2022-02-24T00:35:51Z")

</div>

If it would be possible to for example create script which will do simple query for update static lookup table for selected field, it would be helpful. I can do it with simple `curl`, however is this possible in ES 8 to update static field lookup simple like that?

---

<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 24, 2022, 12:36am UTC](https://discuss.elastic.co/t/data-enrichment/298099/4 "2022-03-24T00:36:29Z")

</div>

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