# Filebeat retrieve log with current time stamp

**URL:** <https://discuss.elastic.co/t/filebeat-retrieve-log-with-current-time-stamp/283355>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 5, 2021, 1:10am UTC](https://discuss.elastic.co/t/filebeat-retrieve-log-with-current-time-stamp/283355 "2021-09-05T01:10:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh12](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@josh12](https://discuss.elastic.co/u/josh12)\
**Post date:** [September 5, 2021, 1:10am UTC](https://discuss.elastic.co/t/filebeat-retrieve-log-with-current-time-stamp/283355/1 "2021-09-05T01:10:36Z")

</div>

Can I know whether i can retrieve logs bsed on current date.

I am planning for

```auto
<log path>/*.log
and set ignore_older : 1h

```

if this the case, how it works. will it scan all logs and take based on current date and time in logs? or based on file time?

---

<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:** [October 3, 2021, 3:10am UTC](https://discuss.elastic.co/t/filebeat-retrieve-log-with-current-time-stamp/283355/2 "2021-10-03T03:10:41Z")

</div>

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