How do I properly configure input to Logstash for a rewritable file?

Hi all!

I have csv file, It is overwritten every 5 minutes.

I have already configured input, filter,output.

But in the current configuration I only get new lines from the file in the index.
But I need to have all the entire contents of the file sent to me every 5 minutes.
How can this be done? Thank you in advance

current input configuration:

input {
    file {
        type => "clients"
        path => "/opt/clients/clients-out.csv"
        sincedb_path => "/opt/clients/.sincedb"
        start_position => "beginning"

I have never tried it but you may be able to do it by setting close_older and sincedb_clean_after to small enough values.

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