Filebeat subdirectories scan doubt


(Kernel Panic) #1

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


(Andrew Kroh) #2

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


(Kernel Panic) #3

Thanks!


(system) #4

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