Filebeat config prospectors paths with pattern

Hello.

I want to configure my filebeat prospectors paths with a pattern. My directory that contains the log file is like /scripts/09082019/file.log and this one generates every day changing just the date pattern ddMMYYYY. So I want to configure this way to read just the log file from the current day. Just look at my code:

filebeat.prospectors:

  • type: log
    enabled: true
    paths:
    • /var/scripts/%{+yyyy.MM.dd}/*.log

But it does not work. Is there a way to make it possible?

Thank you.

Regards,

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