# Logstash Ruby Filter Not Removing Fields

**URL:** https://discuss.elastic.co/t/logstash-ruby-filter-not-removing-fields/225297
**Category:** Logstash
**Created:** [March 26, 2020, 9:31pm UTC](https://discuss.elastic.co/t/logstash-ruby-filter-not-removing-fields/225297 "2020-03-26T21:31: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: [March 26, 2020, 11:11pm UTC](https://discuss.elastic.co/t/logstash-ruby-filter-not-removing-fields/225297/2 "2020-03-26T23:11:34Z")

</div>

Try something like [this](https://discuss.elastic.co/t/remove-subfield-using-ruby/225055/4).

---

_[View the full topic](https://discuss.elastic.co/t/logstash-ruby-filter-not-removing-fields/225297)._
