Filebeat config prospectors paths with pattern


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:


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

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

Thank you.


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