Hi,
I'm using filebeat version 8.7.0.
/var/log list the following files:
-rwxrwxrwx 1 1000 1000 244631 Mar 21 06:30 cron
-rwxrwxrwx 1 1000 1000 48940 Feb 26 03:37 cron-20230226.gz
-rwxrwxrwx 1 1000 1000 48766 Mar 5 03:31 cron-20230305.gz
-rwxrwxrwx 1 1000 1000 49153 Mar 12 03:22 cron-20230312.gz
-rwxrwxrwx 1 1000 1000 48982 Mar 19 03:39 cron-20230319.gz
filebeat.yml is configured as following:
- type: log
paths:- /var/log/cron*
encoding: plain
fields:
tag: cron
close_eof: true
- /var/log/cron*
The problem is that only cron file is recognized while other cron*.gz file aren't recognized.
Any idea how exactly need to define so all *.gz files will be recognized?
Thanks, Tal.