# Ruby filter - detect null values inside structure

**URL:** <https://discuss.elastic.co/t/ruby-filter-detect-null-values-inside-structure/205509>\
**Category:** Logstash\
**Created:** [October 28, 2019, 3:56pm UTC](https://discuss.elastic.co/t/ruby-filter-detect-null-values-inside-structure/205509 "2019-10-28T15:56:11Z")\
**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:** [October 28, 2019, 4:48pm UTC](https://discuss.elastic.co/t/ruby-filter-detect-null-values-inside-structure/205509/2 "2019-10-28T16:48:27Z")

</div>

Use a script and iterate over the objects. Something like [this](https://discuss.elastic.co/t/how-to-parse-json-array-to-get-object-count/170409/4) or [this](https://discuss.elastic.co/t/flatten-recursively-a-json-to-logstash-in-ruby/188076/2).

---

_[View the full topic](https://discuss.elastic.co/t/ruby-filter-detect-null-values-inside-structure/205509)._
