-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
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
Ordering of matched files being watched #56
Comments
I can confirm that the order of each file being visited is not defined. As a workaround, can you try generating or templating your logstash config based on the file list first? Something like |
From @guyboertje 's blog post, this is a desired future capability:
|
I suspect the OP was not doing file tailing but file read. |
This is now supported. |
The Request:
This is more of an enhancement request to add support for the matched files to be watched in the order of their timestamp oldest to newest and or add an option to define the some ordering behaviors.
The problem
Given:
path => "/tmp/file.*.json"
Right now the ordering of watched files appear to be based on whatever order glob returns. This leads to situations where a newer file ends up being watched before an older one.
In my case I need logstash to respect this historical order of the matched files, otherwise it leads to the old data being considered the latest version. (i get around this by aggressively pruning old files that i "think" are done and when I run into this issue I end up having to reload the latest data manually).
Is anyone else running into this?
The text was updated successfully, but these errors were encountered: