Skip to content

Ordering of matched files being watched #56

@dev-head

Description

@dev-head

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions