Filebeat doesnt exclude rotated files

I try to grab the log files that only end in .log but Filebeat grabs the rotated logfiles .log.2020-03-11too.
I dont understand why he does that.

-type: log
 enabled: true
   - /opt/service/**/service-*.log
   - '^\/opt\/service\/.+\/.+\/.+\/.+(.log).+'
   - '^\/opt\/.+(.backup)\/.+'
   - ['\.jar$']

Does anybody have any solutions for me?

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