# Lookup Values

**URL:** <https://discuss.elastic.co/t/lookup-values/184552>\
**Category:** Logstash\
**Created:** [June 6, 2019, 10:13am UTC](https://discuss.elastic.co/t/lookup-values/184552 "2019-06-06T10:13:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoav\_Ben\_Moha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yoav_ben_moha/32/46202_2.png) [@Yoav\_Ben\_Moha](https://discuss.elastic.co/u/Yoav_Ben_Moha)\
**Post date:** [June 6, 2019, 10:13am UTC](https://discuss.elastic.co/t/lookup-values/184552/1 "2019-06-06T10:13:53Z")

</div>

I have CDR file contain 100K rows.  
Some of the columns in that CDR file contain ID columns.  
I need to do a lookup and fetch the description of those ID columns.  
For columns that has small set of ID`s descriptions , i haved added the following entry in the config file

```
    translate {
        field => "P10"
        destination => "CALL_TYPE_DESC"
        dictionary => {
			"0" => "Unknown"
			"1" => "Local"
                                               ....
                                                                    "100" => "End"
                                             }
                     }

```

What are my options when i need to fetch ID description from files/db tables that contain 20,000 rows or more

---

<div class="post-metadata">

**Author:** ![Yoav\_Ben\_Moha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yoav_ben_moha/32/46202_2.png) [@Yoav\_Ben\_Moha](https://discuss.elastic.co/u/Yoav_Ben_Moha)\
**Post date:** [June 15, 2019, 4:19pm UTC](https://discuss.elastic.co/t/lookup-values/184552/2 "2019-06-15T16:19:20Z")

</div>

Hi Experts,  
As i wrote , I have CDR file contain 100K rows.  
I am using csv filter and successfully uploaded the rows using logstatsh.  
Some of the columns in that CDR file contain ID columns.  
I need to do a lookup and fetch the description of those ID columns from ElasticSearch table.  
So actually , for each and every line in the csv file , i need to do a lookup that fetch the description of the ID column.  
For example the csv file contain CountryId coulmn . so for CountryId = 1 , i need to do a lookup that fetch the description of : USA  
Please advise how to lookup at remote elasticsearch table while filtering a csv file  
Thanks  
Yoav

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 15, 2019, 5:15pm UTC](https://discuss.elastic.co/t/lookup-values/184552/3 "2019-06-15T17:15:21Z")

</div>

You can use the translate filter with a file as input or the jdbc\_static filter if you have the data in a rdbms.

---

<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:** [July 13, 2019, 5:20pm UTC](https://discuss.elastic.co/t/lookup-values/184552/4 "2019-07-13T17:20:07Z")

</div>

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