You exclude particular files within a previously configured log path. For instance if you added the default path:
paths:
- /var/log/*.log
You could add the below configuration (which is already present on config file but commented):
# Exclude files. A list of regular expressions to match. Filebeat drops the files that
# are matching any regular expression from the list. By default, no files are dropped.
exclude_files: ['^/var/log/mediator/sysman.log$']
Please note that you would to do this for every file you wished to include (or define a regular expression matching all of them, and only those to exlude)
Additionally if you do want to add this logs to what filebeat sends, you could add filebeat user to the group owning that file/folder. It will depend on the permissions but it would de really strange if then filebeat could not read the file.
Obviously the ideal solution would be devels creating a PR correcting this for future versions, but this workaround should be good enough to keep things working.
Thanks both for your suggestions - Much appreciated.
Exclude files would work temporarily, but filebeat would then 'break' again if someone decided to add another application that doesn't have the correct permissions... But I might give that one a try
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.