# Filter only on the current date on my sql

**URL:** <https://discuss.elastic.co/t/filter-only-on-the-current-date-on-my-sql/214795>\
**Category:** Logstash\
**Created:** [January 13, 2020, 10:29am UTC](https://discuss.elastic.co/t/filter-only-on-the-current-date-on-my-sql/214795 "2020-01-13T10:29:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haalanam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haalanam/32/58782_2.png) [@Haalanam](https://discuss.elastic.co/u/Haalanam)\
**Post date:** [January 13, 2020, 10:29am UTC](https://discuss.elastic.co/t/filter-only-on-the-current-date-on-my-sql/214795/1 "2020-01-13T10:29:15Z")

</div>

Hi,  
I want to make a stop criteria on my logstash loads.  
On the sql statement i want Something like select \* from mytable where insert\_date := current\_date  
Will that work ?  
Thanks

---

<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:** [February 10, 2020, 10:29am UTC](https://discuss.elastic.co/t/filter-only-on-the-current-date-on-my-sql/214795/2 "2020-02-10T10:29:19Z")

</div>

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