# How to handle empty result in jdbc\_streaming filter plugin in Logstash

**URL:** <https://discuss.elastic.co/t/how-to-handle-empty-result-in-jdbc-streaming-filter-plugin-in-logstash/246347>\
**Category:** Logstash\
**Created:** [August 25, 2020, 6:56pm UTC](https://discuss.elastic.co/t/how-to-handle-empty-result-in-jdbc-streaming-filter-plugin-in-logstash/246347 "2020-08-25T18:56:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![naveen007](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@naveen007](https://discuss.elastic.co/u/naveen007)\
**Post date:** [August 25, 2020, 7:19pm UTC](https://discuss.elastic.co/t/how-to-handle-empty-result-in-jdbc-streaming-filter-plugin-in-logstash/246347/4 "2020-08-25T19:19:01Z")

</div>

I am not getting your point. Where should I write this code and what about condition ?  
I want to check user is empty or not. Below is the output when query return empty

```auto
 "user" => [
        [0] {}
]

```

Please let me know if you have any queries.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-handle-empty-result-in-jdbc-streaming-filter-plugin-in-logstash/246347)._
