# Need help dropping specific messages

**URL:** <https://discuss.elastic.co/t/need-help-dropping-specific-messages/339441>\
**Category:** Logstash\
**Created:** [July 27, 2023, 1:11pm UTC](https://discuss.elastic.co/t/need-help-dropping-specific-messages/339441 "2023-07-27T13:11:28Z")\
**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:** [July 27, 2023, 9:18pm UTC](https://discuss.elastic.co/t/need-help-dropping-specific-messages/339441/4 "2023-07-27T21:18:12Z")

</div>

> [@RJC](#):
>
> `if "\u000" in [message] { drop {} }`

I suspect that your message is not a literal "\0000" but a NUL. [This](https://discuss.elastic.co/t/find-and-replace-to-a-unicode-string/252226/2) post might help.

---

_[View the full topic](https://discuss.elastic.co/t/need-help-dropping-specific-messages/339441)._
