Reading from files to a directory to which files are being added continuously


(Shashi S) #1

I have a small question.
suppose if we give below in logstash configuration file,

input {
file {
path => "/Users/shashi/CSVFiles/Core2/*.txt"

I know above can be used to read input from multiple files in Core2 directory of type txt.
My requirement is that multiple new files are being continuously added to this directory when available, for example every 5 minutes. what should i do to read these new files that arrived after logstash processed all of the previous files


(Mark Walkom) #2

Please don't create multiple threads on the same question - Regarding reading files from a directory to which new files are being added continuously after processing all of previous files


(Mark Walkom) #3