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
paths:
- /opt/service/**/service-*.log
exclude:
- '^\/opt\/service\/.+\/.+\/.+\/.+(.log).+'
- '^\/opt\/.+(.backup)\/.+'
- ['\.jar$']