We have some duplicated log entries and would like to exclude a particular log file. There is an 'exclude_files:' directive in the .yml config file, but we are having difficulty making that work.
Question: Is this directive working?
To exclude a file named: badfile.log what would a proper regex be?
How long after restarting filebeat would you expect the file to NOT appear in Kibana/Elasticsearch?
We have tried (with stopping/starting filebeat between each iteration):
exclude_files:"badfile.log"
exclude_files:["badfile.log"]
exclude_files:["^badfile.log$"]
exclude_files:["^//var//log//badfile.log$"]
and a few others.
Template is exclude_files: ['regex']
$ says that the end of the file name is badfile.log
You have to escape the . with \ in a regex, otherwise, . just means "any character"
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.