I have been trying to exclude a file from a directory, here's the dir structure which I have-
I want to include the 1st 3 log files (domain-a, b, and c) but not the domain-d file.
The path that I have written in the filebeat.yml file is -
filebeat.inputs: - type: log enabled: true paths: - /var/logs/*/*/*/logger.log exclude_files: - '/var/logs/domain-d/HSC4/HSC4/logger.log'
Is the above config correct? And is there any way I could do this by exclude_files or some other method? Thanks