# Split json in string from packetbeat

**URL:** <https://discuss.elastic.co/t/split-json-in-string-from-packetbeat/254874>\
**Category:** Logstash\
**Created:** [November 10, 2020, 8:54am UTC](https://discuss.elastic.co/t/split-json-in-string-from-packetbeat/254874 "2020-11-10T08:54:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![langol93](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/langol93/32/78661_2.png) [@langol93](https://discuss.elastic.co/u/langol93)\
**Post date:** [November 10, 2020, 8:54am UTC](https://discuss.elastic.co/t/split-json-in-string-from-packetbeat/254874/1 "2020-11-10T08:54:12Z")

</div>

Hello  
I passed http request from packetbeat to logstash and now I have json in htttp.request.body.content:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/a/fa86140c44e580c3f2313556933ec35f58d9b9ce.png)  
How can I split this string to separate fields?  
I want to have  
id, timestamp and value field..

I tried using grok, json filter etc but without results

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 10, 2020, 3:41pm UTC](https://discuss.elastic.co/t/split-json-in-string-from-packetbeat/254874/2 "2020-11-10T15:41:33Z")

</div>

Use a json filter. Check on the JSON tab in that view, is the http.request.body.content field really [http][request][body][content]?

---

<div class="post-metadata">

**Author:** ![langol93](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/langol93/32/78661_2.png) [@langol93](https://discuss.elastic.co/u/langol93)\
**Post date:** [November 12, 2020, 9:22am UTC](https://discuss.elastic.co/t/split-json-in-string-from-packetbeat/254874/3 "2020-11-12T09:22:19Z")

</div>

Hi  
I used json filter as you recommended and it's working like a charm. Thank you for help

---

<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:** [December 10, 2020, 9:22am UTC](https://discuss.elastic.co/t/split-json-in-string-from-packetbeat/254874/4 "2020-12-10T09:22:35Z")

</div>

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