为什么Filebeat的exclude_files工作不正常?

我有以下configuration:

filebeat: prospectors: - input_type: log paths: - /var/log/tomcat/*.log - /var/log/tomcats/*/*.log encoding: plain exclude_files: - ^catalina - ^localhost - ^localhost_access - ^manager - ^host-manager - ^gc - ^stacktrace - \.txt$ - \.gz$ document_type: tomcat-webapp 

但是gc.log例如仍然被拿起。 为什么这个configuration不工作?