lib/remote_syslog/cli.rb in remote_syslog-1.6.6.1 vs lib/remote_syslog/cli.rb in remote_syslog-1.6.7.pre1
- old
+ new
@@ -215,9 +215,17 @@
end
if config['exclude_patterns']
@agent.exclude_pattern = Regexp.new(config['exclude_patterns'].map { |r| "(#{r})" }.join('|'))
end
+
+ if config['exclude_files']
+ @agent.exclude_file_pattern = Regexp.new(config['exclude_files'].map { |r| "(#{r})" }.join('|'))
+ end
+
+ if config['new_file_check_interval']
+ @agent.glob_check_interval = config['new_file_check_interval']
+ end
end
def run
Thread.abort_on_exception = true