# Processing Multiple Rows From JDBC Streaming

**URL:** <https://discuss.elastic.co/t/processing-multiple-rows-from-jdbc-streaming/291012>\
**Category:** Logstash\
**Created:** [December 6, 2021, 6:56am UTC](https://discuss.elastic.co/t/processing-multiple-rows-from-jdbc-streaming/291012 "2021-12-06T06:56:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [December 6, 2021, 9:27pm UTC](https://discuss.elastic.co/t/processing-multiple-rows-from-jdbc-streaming/291012/9 "2021-12-06T21:27:35Z")

</div>

Perhaps

```
        data.each { |h|
            q = h.delete("questionid")
            event.set("question#{q}", h)
        }
    end

```

would work better for you, and maybe change the event.get to event.remove

Or if you need the array so that you can do the split then move the data using a ruby filter like [this one](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/processing-multiple-rows-from-jdbc-streaming/291012)._
