# Filter tweets based on date?

**URL:** <https://discuss.elastic.co/t/filter-tweets-based-on-date/66277>\
**Category:** Logstash\
**Created:** [November 16, 2016, 5:40pm UTC](https://discuss.elastic.co/t/filter-tweets-based-on-date/66277 "2016-11-16T17:40:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jamal](https://discuss.elastic.co/u/jamal)\
**Post date:** [November 16, 2016, 5:40pm UTC](https://discuss.elastic.co/t/filter-tweets-based-on-date/66277/1 "2016-11-16T17:40:31Z")

</div>

i use logstash\_twitter\_input plugin to get data i have a field by the name @timestam  
=\> 2011-11-16T03:44:01.103Z now i want to filter it with  
logstash\_date\_filter plugin to get new data not old data for exampe  
today date is 2011-11-16T03:44:01.103Z and i want get just tweets that @timestamp match to 2011-11-16T03:44:01.103Z not tweets that have @timestamps = 2011-11-15T03:44:01.103Z

her is my logstash\_filter\_date plugin code  
filter {  
date  
{  
match =\> ['timestamp' =\> "MMM d YYY HH:mm:ss", "ISO8601"]  
}  
}

but i get old tweets as weel .  
help me to just get new tweets

---

<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:** [December 14, 2016, 5:40pm UTC](https://discuss.elastic.co/t/filter-tweets-based-on-date/66277/2 "2016-12-14T17:40:37Z")

</div>

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