Logstash Watch Folder for files changes

Hi,

Logstash v1.5.4

With this release version of logstash , any ideas of best way to scan folder to see if any files exists
and push the file names to elastic search ?

the selection pattern should be based on the creation date of the file.

rule :
push file to index if and only if (current_date - file_create_date) > threshold.

Thanks .

The file input does not take that into account because it does not read anything other than the inode number.
You may be able to do some funky ruby to test, if the filename had a date in it.

Also, upgrade! 1.5 is super old!

Hi, ok thanks for your suggestions !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.