I am trying to exclude a sub directory and all of its files in file beat . In the documentation, i know that there is a flag called "exclude_files". But having hard time to figure out how to use it to exclude a sub directory.
This log path contains /var/log/syslog/port below sub directories
But i want to eliminate the sub directory "old" all the files in it .. Is it possible to do it with "exclude_files ?