# Equivalent of sql join and update

**URL:** https://discuss.elastic.co/t/equivalent-of-sql-join-and-update/23310
**Category:** Elasticsearch
**Created:** [April 19, 2015, 12:11pm UTC](https://discuss.elastic.co/t/equivalent-of-sql-join-and-update/23310 "2015-04-19T12:11:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dna\_lor](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dna\_lor](https://discuss.elastic.co/u/dna_lor)
#### Post date: [April 19, 2015, 12:11pm UTC](https://discuss.elastic.co/t/equivalent-of-sql-join-and-update/23310/1 "2015-04-19T12:11:15Z")

</div>

i am using logstash to forward my apache logs to elasticsearch

one of the query string fields is "tagid=$NUMBER" is parsed properly and  
can be searched for..  
though when i am visualizing that data on kibana; business people do not  
care about numbers and want to be able to read proper names related to  
those tags...

the table which matches Tagid2Name is fairly static and hardly ever  
changes ...

i am wondering if there's a way for me to visualize that data and replace  
the tagid with its proper name.  
the table in question is around 200 record in size; the simplest way i  
can think of is to use logstash to add field on match but that's not  
scalable...

any advice on what i should look for ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/36af2284-6522-465e-b046-396e6823afd0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/36af2284-6522-465e-b046-396e6823afd0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [April 19, 2015, 9:55pm UTC](https://discuss.elastic.co/t/equivalent-of-sql-join-and-update/23310/2 "2015-04-19T21:55:18Z")

</div>

Logstash has a translate filter -

> **[Translate filter plugin | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html)**

However KB3 has this functionality built in, where you can change a  
displayed value to something else, it'll be released in KB4 soon.

On 19 April 2015 at 22:11, dna lor [dnalor.ah@gmail.com](mailto:dnalor.ah@gmail.com) wrote:

> i am using logstash to forward my apache logs to elasticsearch
> 
> one of the query string fields is "tagid=$NUMBER" is parsed properly and  
> can be searched for..  
> though when i am visualizing that data on kibana; business people do not  
> care about numbers and want to be able to read proper names related to  
> those tags...
> 
> the table which matches Tagid2Name is fairly static and hardly ever  
> changes ...
> 
> i am wondering if there's a way for me to visualize that data and replace  
> the tagid with its proper name.  
> the table in question is around 200 record in size; the simplest way i  
> can think of is to use logstash to add field on match but that's not  
> scalable...
> 
> any advice on what i should look for ?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/36af2284-6522-465e-b046-396e6823afd0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/36af2284-6522-465e-b046-396e6823afd0%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/36af2284-6522-465e-b046-396e6823afd0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/36af2284-6522-465e-b046-396e6823afd0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-GRMLoQk6i0U%2BkTMm8c1MxTpwpNz\_mNYmdangdzJWqyg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-GRMLoQk6i0U%2BkTMm8c1MxTpwpNz_mNYmdangdzJWqyg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:18am UTC](https://discuss.elastic.co/t/equivalent-of-sql-join-and-update/23310/3 "2017-07-06T00:18:49Z")

</div>


