We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would you consider adding an option like limit_recent_modified :time ?
limit_recent_modified :time
The purpose of this option is to solve the following:
I want to skip logs of expiration when Fluentd stops for a long time due to failure or maintenance.
In addition, suppress unnecessary watcher creating to save resources.
ex.
def expand_paths date = Time.now paths = [] excluded = @exclude_path.map { |path| path = date.strftime(path); path.include?('*') ? Dir.glob(path) : pat\ h }.flatten.uniq @paths.each { |path| path = date.strftime(path) if path.include?('*') paths += Dir.glob(path).select { |p| if File.readable?(p) && !File.directory?(p) - true + if @limit_recent_modified and File.mtime(p) < (date - @limit_recent_modified) + false + else + true + end else
The text was updated successfully, but these errors were encountered:
It seems good idea.
Sorry, something went wrong.
No branches or pull requests
Would you consider adding an option like
limit_recent_modified :time
?The purpose of this option is to solve the following:
I want to skip logs of expiration when Fluentd stops for a long time due to failure or maintenance.
In addition, suppress unnecessary watcher creating to save resources.
ex.
The text was updated successfully, but these errors were encountered: