# Logstash : parse json input from http poller failing

**URL:** <https://discuss.elastic.co/t/logstash-parse-json-input-from-http-poller-failing/352787>\
**Category:** Logstash\
**Created:** [February 7, 2024, 5:06pm UTC](https://discuss.elastic.co/t/logstash-parse-json-input-from-http-poller-failing/352787 "2024-02-07T17:06:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 7, 2024, 6:31pm UTC](https://discuss.elastic.co/t/logstash-parse-json-input-from-http-poller-failing/352787/2 "2024-02-07T18:31:34Z")

</div>

You could try

```
    json { source => "message" remove_field => ["message"] }
    split { field => results }
    split { field => "[results][tables]" }
    split { field => "[results][tables][rows]" }

```

and then use ruby to move the fields in [results][tables][rows] to the top level, as shown [here](https://discuss.elastic.co/t/how-to-dynamically-move-nested-key-value-to-root-level/180006/2).

---

_[View the full topic](https://discuss.elastic.co/t/logstash-parse-json-input-from-http-poller-failing/352787)._
