# How to remove document I logstash pipilnie that has no usefull fields

**URL:** <https://discuss.elastic.co/t/how-to-remove-document-i-logstash-pipilnie-that-has-no-usefull-fields/253243>\
**Category:** Logstash\
**Created:** [October 25, 2020, 5:58pm UTC](https://discuss.elastic.co/t/how-to-remove-document-i-logstash-pipilnie-that-has-no-usefull-fields/253243 "2020-10-25T17:58:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 26, 2020, 10:28pm UTC](https://discuss.elastic.co/t/how-to-remove-document-i-logstash-pipilnie-that-has-no-usefull-fields/253243/4 "2020-10-26T22:28:54Z")

</div>

In ruby you would call event.cancel to delete an entire event. There is an example [here](https://discuss.elastic.co/t/logstash-exclude-separator-lines-in-logs/175071/2).

---

_[View the full topic](https://discuss.elastic.co/t/how-to-remove-document-i-logstash-pipilnie-that-has-no-usefull-fields/253243)._
