# Save all message event to array in ruby filter

**URL:** <https://discuss.elastic.co/t/save-all-message-event-to-array-in-ruby-filter/287381>\
**Category:** Logstash\
**Created:** [October 22, 2021, 3:51am UTC](https://discuss.elastic.co/t/save-all-message-event-to-array-in-ruby-filter/287381 "2021-10-22T03:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hertz\_Drive](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hertz_drive/32/96228_2.png) [@Hertz\_Drive](https://discuss.elastic.co/u/Hertz_Drive)\
**Post date:** [October 22, 2021, 3:51am UTC](https://discuss.elastic.co/t/save-all-message-event-to-array-in-ruby-filter/287381/1 "2021-10-22T03:51:44Z")

</div>

I need save event to array.

print (event)

> > %{host} %{message}

I need print message in event.

Thank you.

---

<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:** [November 19, 2021, 3:51am UTC](https://discuss.elastic.co/t/save-all-message-event-to-array-in-ruby-filter/287381/2 "2021-11-19T03:51:53Z")

</div>

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