# How to parse today's file

**URL:** <https://discuss.elastic.co/t/how-to-parse-todays-file/25968>\
**Category:** Logstash\
**Created:** [July 21, 2015, 9:37am UTC](https://discuss.elastic.co/t/how-to-parse-todays-file/25968 "2015-07-21T09:37:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 21, 2015, 9:49am UTC](https://discuss.elastic.co/t/how-to-parse-todays-file/25968/2 "2015-07-21T09:49:38Z")

</div>

See the recent thread below. I don't think `%{+YYYY-MM-dd}` works in this context since it uses the current event's timestamp, but inputs don't have a current event context.

> [@Dynamic input file name](https://discuss.elastic.co/t/dynamic-input-file-name/25951):
>
> Hi, I have log file whose name changes as per date. How to set path in the input filter. i have given below path: "/www/redhat/ews-abc-uat/tomcat7/logs/access.date '+%F'.log" Its not working. Please suggest. Regards, Raman

---

_[View the full topic](https://discuss.elastic.co/t/how-to-parse-todays-file/25968)._
