# Data conversion & enrichment with Logstash

**URL:** <https://discuss.elastic.co/t/data-conversion-enrichment-with-logstash/114921>\
**Category:** Logstash\
**Created:** [January 10, 2018, 5:20pm UTC](https://discuss.elastic.co/t/data-conversion-enrichment-with-logstash/114921 "2018-01-10T17:20:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ranieri\_Mazili\_de\_Ol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ranieri_mazili_de_ol/32/15815_2.png) [@Ranieri\_Mazili\_de\_Ol](https://discuss.elastic.co/u/Ranieri_Mazili_de_Ol)\
**Post date:** [January 10, 2018, 5:20pm UTC](https://discuss.elastic.co/t/data-conversion-enrichment-with-logstash/114921/1 "2018-01-10T17:20:44Z")

</div>

I'm developing a product with Logstash + Elasticsearch + Kibana.

I needed to make Logstash listen a JMS queue and I made it using JMS Input Plugin.  
I needed to convert the xml to json and I made it using JMS XML filter plugin.

1. Now I need to query elasticsearch based on an id I receveid on my input message
2. Consume a rest service based on an id received from the elasticsearch query
3. Merge the content of elasticsearch result, input message and rest service responses and update the elasticsearch record.

Can I perform all these remaining steps only with logstash? If so, which plugins(filters/codecs) should I use? If not, any ideas of how to do it?

I really appreciate any help  
Thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 16, 2018, 4:44pm UTC](https://discuss.elastic.co/t/data-conversion-enrichment-with-logstash/114921/2 "2018-01-16T16:44:50Z")

</div>

> Can I perform all these remaining steps only with logstash?

No, not with the standard plugins. There is an elasticsearch filter so you get obtain the id from the input message but I don't think there's a REST lookup plugin.

---

<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:** [February 13, 2018, 4:45pm UTC](https://discuss.elastic.co/t/data-conversion-enrichment-with-logstash/114921/3 "2018-02-13T16:45:19Z")

</div>

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