# How to convert incoming JSON data from HTTP response into a string and store it in a new field in Metricbeat?

**URL:** <https://discuss.elastic.co/t/how-to-convert-incoming-json-data-from-http-response-into-a-string-and-store-it-in-a-new-field-in-metricbeat/328700>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 28, 2023, 10:12am UTC](https://discuss.elastic.co/t/how-to-convert-incoming-json-data-from-http-response-into-a-string-and-store-it-in-a-new-field-in-metricbeat/328700 "2023-03-28T10:12:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan\_Vyas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karan_vyas/32/118832_2.png) [@Karan\_Vyas](https://discuss.elastic.co/u/Karan_Vyas)\
**Post date:** [March 28, 2023, 10:12am UTC](https://discuss.elastic.co/t/how-to-convert-incoming-json-data-from-http-response-into-a-string-and-store-it-in-a-new-field-in-metricbeat/328700/1 "2023-03-28T10:12:32Z")

</div>

I am using Metricbeat's HTTP module to make a request to the RabbitMQ API to retrieve queue data. However, the Metricbeat RabbitMQ module does not include some fields like incoming and delivery rate, so I am making the request to the API directly.

The problem I am facing is that the response from the RabbitMQ API consists of nested objects and arrays, which Metricbeat is not storing in the index. To overcome this issue, I want to convert the incoming JSON data from the HTTP response into a string and store it in a new field in Metricbeat.

How can I achieve this? Is there a way to convert the JSON data into a string and store it in a field using Metricbeat's HTTP module?

I think I can use processors but I am struggling with how to achieve this.

---

<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:** [April 25, 2023, 12:13pm UTC](https://discuss.elastic.co/t/how-to-convert-incoming-json-data-from-http-response-into-a-string-and-store-it-in-a-new-field-in-metricbeat/328700/2 "2023-04-25T12:13:13Z")

</div>

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