# Dynamic lookup on Kibana

**URL:** <https://discuss.elastic.co/t/dynamic-lookup-on-kibana/242524>\
**Category:** Kibana\
**Created:** [July 24, 2020, 2:36pm UTC](https://discuss.elastic.co/t/dynamic-lookup-on-kibana/242524 "2020-07-24T14:36:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zfmoto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zfmoto/32/70028_2.png) [@zfmoto](https://discuss.elastic.co/u/zfmoto)\
**Post date:** [July 24, 2020, 2:36pm UTC](https://discuss.elastic.co/t/dynamic-lookup-on-kibana/242524/1 "2020-07-24T14:36:47Z")

</div>

Currently, I'm trying to associate a process ID from a log to the name of the process. For instance, if I ingest 5 files, all of which belong to the same device, the name of the process will have a different process ID. The name of the process is established early on in the file eg `(1234): Start proc 2315 as NEW_PROC` where 2315 is the new process ID and NEW\_PROC is the process itself. Subsequent lines will be presented as `(2315): this is some process text` Sorry if anything is unclear, but how could I go about doing this?

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [July 30, 2020, 6:10am UTC](https://discuss.elastic.co/t/dynamic-lookup-on-kibana/242524/2 "2020-07-30T06:10:47Z")

</div>

Hi

You should do this lookup when ingesting your data, e.g. you could use the enrich processor of ES for that purpose, have a look:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-enriching-data.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-enriching-data.html)

If you're using Logstash you could store the processID to processName relation in memcache by using the memcache filter:  
[https://www.elastic.co/guide/en/logstash/current/plugins-filters-memcached.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-memcached.html)  
There's no way to do this in directly in Kibana  
Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [July 30, 2020, 6:13am UTC](https://discuss.elastic.co/t/dynamic-lookup-on-kibana/242524/3 "2020-07-30T06:13:47Z")

</div>

update: there's no way to do this in kibana, unless these process id to process name would be static, then you could use a scripted field for that, but I think they are not static, right?

---

<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:** [August 27, 2020, 6:13am UTC](https://discuss.elastic.co/t/dynamic-lookup-on-kibana/242524/4 "2020-08-27T06:13:50Z")

</div>

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