# Trouble with filter conditional logic

**URL:** <https://discuss.elastic.co/t/trouble-with-filter-conditional-logic/321930>\
**Category:** Logstash\
**Created:** [December 23, 2022, 3:36pm UTC](https://discuss.elastic.co/t/trouble-with-filter-conditional-logic/321930 "2022-12-23T15:36:11Z")\
**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:** [December 23, 2022, 5:59pm UTC](https://discuss.elastic.co/t/trouble-with-filter-conditional-logic/321930/4 "2022-12-23T17:59:01Z")

</div>

> [@willdennis](#):
>
> ```auto
> date {
> match => ["logTime", "MMM dd HH:mm:ss"]
> target => "@timestamp"
> }
> 
> ```

If your date string does not have a year then the date filter will make an educated guess about what the year should be. Sometimes it gets that wrong. See [here](https://discuss.elastic.co/t/grok-timestamp/265236/2) for a longer discussion.

Assuming you are looking in Kibana, expand the date range a year backwards and forwards to see if the events are there.

---

_[View the full topic](https://discuss.elastic.co/t/trouble-with-filter-conditional-logic/321930)._
