How can filebeat collect logs current date?

Leandro told you main point of FB is the feature: ignore_older. Maybe you can use the script processor to drop events if they are not matched by timestemp or date in the directory path.

What you can consider is to involve LS which more powerful for data transformation, where is easy to add a control mechanism to drop all events which are not from today's directory.

There is also the age LS plugin, which was discussed on the topic however it's based on the timestamp field not directory.

1 Like