Filebeat subdirectories scan doubt

Hi everyone
I've got a doubt about how subdirectories are handled, suppose I have the following directory structure;

/var/log/
/var/log/dir1
/var/log/dir2

The if I say in filebeat.yml that the path is - /var/log/* will that scan for subdirectories dir1 and dir2? or should I explicity say /var/log/dir1/* /var/log/dir2/*

Thanks
Regards

The * does not trigger a recursive search. You would want to use /var/log/*/* to match files like /var/log/dir1/mylogfile.

Thanks!

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