# Remove an array field that has empty objects inside

**URL:** https://discuss.elastic.co/t/remove-an-array-field-that-has-empty-objects-inside/172828
**Category:** Logstash
**Created:** [March 18, 2019, 4:32pm UTC](https://discuss.elastic.co/t/remove-an-array-field-that-has-empty-objects-inside/172828 "2019-03-18T16:32:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bigster](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bigster](https://discuss.elastic.co/u/bigster)
#### Post date: [March 18, 2019, 4:32pm UTC](https://discuss.elastic.co/t/remove-an-array-field-that-has-empty-objects-inside/172828/1 "2019-03-18T16:32:01Z")

</div>

Hi all,

I've got a field that is an array of objects, but the object is null:

 ![Untitled](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d4d02d741134a506963e1fdf0451fdc08b50e5b9.jpeg)

And when this situation happens i want to remove the field.  
After several tries with ruby filter, conditional ifs, i can't figure out how to get the right condition to remove this field.

Anyone have this kind of problem and the solution for this?

Cheers

---

<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: [April 15, 2019, 4:32pm UTC](https://discuss.elastic.co/t/remove-an-array-field-that-has-empty-objects-inside/172828/2 "2019-04-15T16:32:02Z")

</div>

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